Closed (fixed)
Project:
SWF Tools
Version:
5.x-1.0
Component:
SWF Tools
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2007 at 20:51 UTC
Updated:
16 Aug 2009 at 10:21 UTC
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
Comment #1
simeAh this is my basic generic player. I see the problem a think.
The : thing is nothing to worry about, btw.
Comment #2
simeI'll be a little while looking into this, you might want to try jeroenwijering.com's media player in the meantime.
Comment #3
simeHaving trouble replicating, here is my embed code:
Comment #4
simeCan you try taking the file url, replacing the colon, and then testing it directly in a broswer?
Comment #5
bennybobw commentedOkay, 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...
Comment #6
bennybobw commentedFalse alarm file permissions problem. Sorry about all that. I copied the flv file from another file system and the permissions got whacked out.
Comment #7
simeThanks 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 :)
Comment #8
(not verified) commented