Jump to content

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


jool

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.