Jump to content

Archived

This topic is now archived and is closed to further replies.

jool

Playing a .flv file stored in a MySQL database through a flash video player

Recommended Posts

Hello all,

I am trying to use the Flash Media player (as provided in Dreamweaver 8) to run flash video files (flv) from a MySQL database. The code generated when I insert the player from the menu is:

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="130" height="98" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Corona_Skin_1&streamName=videos/naomi3&autoPlay=false&autoRewind=false" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Corona_Skin_1&streamName=videos/naomi3&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="130" height="98" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

where the relative path is:
videos/naomi3.flv

However as the path is stored in the MySQL database, I tried replacing the 2 incidences of 'videos/naomi3' with
<?php echo $row_d['video']; ?> (the MySQL database is set up correctly and values from other rows display on the dynamic form correctly - here 'video' is the row name and 'd' the table) but nothing happened /no video was displayed.

Any help and advice would really be appreciated.

Thanks and have a nice Friday.

Jool

Share this post


Link to post
Share on other sites
Make sure you can echo that path outside the OBJECT/EMBED tag first.

Share this post


Link to post
Share on other sites
Yeah...that was more or less the problem. I re-set things up so I could definitely echo - and now it's working!

Thanks fenway! An outside perspective always helps. Have a great weekend!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.