embed code gets stripped on networking sites

rpmute - May 6, 2008 - 05:32
Project:FLV Media Player
Version:5.x-0.11
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

just for fun tried to embed the code in a myspace page. here's the original copied from the 'embed code' output box:

<object width="400" height="240"><param name="movie" value="http://hdslideshows.com/files/flash/mediaplayer.swf"></param><embed src="http://hdslideshows.com/files/flash/mediaplayer.swf" type="application/x-shockwave-flash" type="movie" width="400" height="240" allowfullscreen="true" allowscriptaccess="true" flashvars="config=http://hdslideshows.com/flvmediaplayer/93"></embed></object>

and heres what gets displayed in the myspace code:

<object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="240" width="400" data="http://hdslideshows.com/files/flash/mediaplayer.swf">
  <param name="allowScriptAccess" value="never" />
  <param name="allowNetworking" value="internal" />
  <param name="movie" value="http://hdslideshows.com/files/flash/mediaplayer.swf" />
</object>

any idea why or how they do this? the player pops up obviously, because its linked, but the file value gets removed.

#1

arthurf - May 6, 2008 - 13:27
Status:active» postponed (maintainer needs more info)

Well, clearly it has something to do with how MySpace is munging the object. Looking here: http://www.jeroenwijering.com/?thread=8842 it's clear you're not alone. Can you try the code that is produced by JW's wizard and see if the issue is just the code I wrote to create the embed?

http://www.jeroenwijering.com/?page=wizard

#2

rpmute - May 6, 2008 - 15:09

yeah, i'll try it a little later today, at work now. thanks for responding quickly. i've been trying to come up with other ways like using your embed code inside of embedded media field module's custom url etc, just for kicks. i hadn't even checked jw's site yet.
problem with these big sites is theyre constantly changing their code restrictions and its a pain in the ass to keep up.

You know what would be great is a themable function in your module for embed output where you could alter the code as you see fit, just to keep up with this. That way i wouldn't need to bug you. :)
thanx again.

#3

rpmute - May 6, 2008 - 15:09

yeah, i'll try it a little later today, at work now. thanks for responding quickly. i've been trying to come up with other ways like using your embed code inside of embedded media field module's custom url etc, just for kicks. i hadn't even checked jw's site yet.
problem with these big sites is theyre constantly changing their code restrictions and its a pain in the ass to keep up.

You know what would be great is a themable function in your module for embed output where you could alter the code as you see fit, just to keep up with this. That way i wouldn't need to bug you. :)
thanx again.

#4

arthurf - May 6, 2008 - 18:12

Well, you could try theme('flvmediaplayer_embed_code' :)

That should give you the control you need, I think- but if you find that there is a specific code that is needed for myspace, maybe we should change the default code?

#5

rpmute - May 7, 2008 - 01:24

your code

<object width="400" height="240"><param name="movie" value="http://hdslideshows.com/files/flash/mediaplayer.swf"></param><embed src="http://hdslideshows.com/files/flash/mediaplayer.swf" type="application/x-shockwave-flash" type="movie" width="400" height="240" allowfullscreen="true" allowscriptaccess="true" flashvars="config=http://hdslideshows.com/flvmediaplayer/93"></embed></object>

note: the xml playlist path that flvmediaplayer module outputs is:
http://hdslideshows.com/flvmediaplayer/93

this path works though on the jw 'wizard' page:
http://hdslideshows.com/xspf/node/93

while the other does not.

and here's the embed code (from the jw wizard) that produces a correctly playing video from my site with watermark and everything:
jw wizard code

<embed
src="http://hdslideshows.com/files/flash/mediaplayer.swf"
width="400"
height="240"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="height=240&width=400&file=http://hdslideshows.com/xspf/node/93&logo=http://www.hdslideshows.com/files/flash/watermark.png&searchbar=false&overstretch=fit&autoscroll=true"
/>

the above code works in myspace.

your code (even if i change the playlist output path to /xspf/node/93):
does not work. player comes up but just get a spinning wheel. this is what i inputted initially in the code below.

and FINALLY,
here's how myspace alters both codes if i go back to my blog edit page:

The top one is from wijering's website that works, the bottom one is yours:
myspace

<object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="240" width="400" data="http://hdslideshows.com/files/flash/mediaplayer.swf">
  <param name="allowScriptAccess" value="never" />
  <param name="allowNetworking" value="internal" />
  <param name="movie" value="http://hdslideshows.com/files/flash/mediaplayer.swf" />
  <param name="flashvars" value="height=240&width=400&file=http://hdslideshows.com/xspf/node/93&logo=http://www.hdslideshows.com/files/flash/watermark.png&searchbar=false&overstretch=fit&autoscroll=true" />
</object>

<br><br>

<object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="240" width="400" data="http://hdslideshows.com/files/flash/mediaplayer.swf">
  <param name="allowScriptAccess" value="never" />
  <param name="allowNetworking" value="internal" />
  <param name="movie" value="http://hdslideshows.com/files/flash/mediaplayer.swf" />
</object>

hope this helps

#6

rpmute - May 7, 2008 - 01:31
 
 

Drupal is a registered trademark of Dries Buytaert.