I downloaded the June 4th release of SWF Object and am trying to embed a .flv file with the folowing in the body tag:

Here's a video of ALARM's History:
<?php
print swf("alarm_hist_med.flv", "336x224");
?>

SWF Tools is returning the following, in which it appears that %3A is replacing what should be a colon and FlashVars is showing up twice?:

Here's a video of ALARM's History: <div class="swftools-wrapper generic-mp3 "><div class="swftools"><object width="336" height="224" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"> 
<param name="allowScriptAccess" value="sameDomain" /> 
<param name="movie" value="http://drupal5/sites/drupal5/modules/swftools/shared/generic/generic_flv.swf" /> 
<param name="wmode" value="opaque" /> 
<param name="bgcolor" value="#FFFFFF" /> 
<param name="scale" value="showall" /> 
<param name="quality" value="autohigh" /> 
<param name="align" value="l" /> 
<param name="FlashVars" value="autostart=false&file_url=http%3A//drupal5/sites/drupal5/files/alarm_hist_med.flv&width=336&height=224" /> <embed width="336" height="224" swliveconnect="default" src="http://drupal5/sites/drupal5/modules/swftools/shared/generic/generic_flv.swf" wmode="opaque" bgcolor="#FFFFFF" scale="showall" quality="autohigh" loop="false" menu="true" play="true" name="" base="http://drupal5/sites/drupal5/files" salign="tl" FlashVars="autostart=false&file_url=http%3A//drupal5/sites/drupal5/files/alarm_hist_med.flv&width=336&height=224" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object></div> </div>

All I'm getting is a white blank, although it looks like the SWF is loaded, but not the flv...
Thanks for your help!

Comments

sime’s picture

Ah this is my basic generic player. I see the problem a think.

The : thing is nothing to worry about, btw.

sime’s picture

I'll be a little while looking into this, you might want to try jeroenwijering.com's media player in the meantime.

sime’s picture

Having trouble replicating, here is my embed code:

<div class="swftools-wrapper generic-flv ">
<div class="swftools"><object width="320" height="275" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"></p>
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie"   value="http://emspace.com.au/sites/all/modules/swftools/shared/generic/generic_flv.swf" />
<param name="wmode"   value="transparent" />
<param name="bgcolor" value="#551199" />
<param name="scale"   value="showall" />
<param name="quality" value="autohigh" />
<param name="align"   value="l" />
<param name="FlashVars"  value="autostart=false&amp;file_url=http%3A//emspace.com.au/sites/emspace.com.au/files/Anzac.flv" />
<embed width="320" height="275" swliveconnect="default" src="http://emspace.com.au/sites/all/modules/swftools/shared/generic/generic_flv.swf" wmode="transparent" bgcolor="#551199" scale="showall" quality="autohigh" loop="false" menu="false" play="true" name="" base="http://emspace.com.au/sites/emspace.com.au/files" salign="tl" FlashVars="autostart=false&amp;file_url=http%3A//emspace.com.au/sites/emspace.com.au/files/Anzac.flv" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /><br />

</object></div>
</div>
sime’s picture

Can you try taking the file url, replacing the colon, and then testing it directly in a broswer?

bennybobw’s picture

Okay, I put it in a plain vanilla html file in my root drupal directory, and still it didn't load the video. I'm running on localhost, but I don't know what that would have to do with it. The SWF looks like it loads, although I don't see any player controls. The FLV file definitely doesn't load.

Earlier I tried running the video using FLV player, and it worked. All the links look exactly correct (and I know the link to the FLV file is working because the module checked that the file was there).

I'm running Apache2, php5, mysql5. I can get you the exact versions if you need. Thanks again for your help...

bennybobw’s picture

Status: Active » Closed (fixed)

False alarm file permissions problem. Sorry about all that. I copied the flv file from another file system and the permissions got whacked out.

sime’s picture

Status: Closed (fixed) » Fixed

Thanks for updating the ticket status, I appreciate this!

Something useful about ticket status is that you can make them "fixed", then they appear green in the queue for about 2 weeks before they are automatically "closed". So I'm marking "fixed" for this reason.

Thanks for trying SWF Tools :)

Anonymous’s picture

Status: Fixed » Closed (fixed)