By FredJones on
I have a D6 site with jQuery Media and jQuery Plugin and it's set to
replace links to MP3 files with the Flash player. This worked once,
but since then the site has been updated and now it fails and I can't
figure out why. I see in Firebug what appears to be the correct code:
<embed height="40" width="300"
flashvars="file=http://MYSITE.com/sites/default/files/mp3s/SomeFile.mp3"
autoplay="false" wmode="transparent" bgcolor="#ffffff"
pluginspage="http://www.adobe.com/go/getflashplayer"
type="application/x-shockwave-flash"
src="/player.swf?file=http://MYSITE.com/sites/default/files/mp3s/SomeFile.mp3"
style="display: block;"/>
but nothing appears. Right click says "movie not loaded" but if I go
to http://MYSITE.com/player.swf then I see the player normally.
Any ideas?
Comments
SOlved
Someone gave me the answer. The reference to the MP3 file must be relative not absolute, as mine were.
Don't know how to fix it the "right" way but adding this:
$content = str_replace('http://www.MYSITE.com','',$content);
in node.tpl.php worked. :)