Jump to content


Photo

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


  • Please log in to reply
2 replies to this topic

#1 jool

jool
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 14 September 2006 - 07:49 PM

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.macr...ersion=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.macromedi...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

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 14 September 2006 - 08:10 PM

Make sure you can echo that path outside the OBJECT/EMBED tag first.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 jool

jool
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 September 2006 - 10:15 AM

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!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users