jool Posted September 14, 2006 Share Posted September 14, 2006 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 Quote Link to comment Share on other sites More sharing options...
fenway Posted September 14, 2006 Share Posted September 14, 2006 Make sure you can echo that path outside the OBJECT/EMBED tag first. Quote Link to comment Share on other sites More sharing options...
jool Posted September 15, 2006 Author Share Posted September 15, 2006 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.