spenceddd Posted January 3, 2010 Share Posted January 3, 2010 Hi, I have a form which contains an flv player which reads in content from my database when the page is refreshed but I also need it to change client side when an new item is selected from the a dropdown list. This is the code I have for the flash player: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="250" height="178" 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="streamName=uploaded/movies/<?php echo $row_chosen_pItem['movie'];?>" /> <embed src="FLVPlayer_Progressive.swf" flashvars="streamName=uploaded/movies/<?php echo $row_chosen_pItem['movie'];?>" quality="high" scale="noscale" width="250" height="178" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" /> </object> Here is the code for the drop down list: <select name="movie" onChange="updateMov(this, 'FLVPlayer')"> <?php echo buildMoviesFileList('uploaded/movies/',$row_chosen_pItem['movie']); ?> </select> ...and here is the javascript code: function updateMov(ele, img) { document.getElementById(img).FlashVars = "streamName=uploaded/movies/" + ele.value; } Can anyone see what I am doing wrong? Thanks in advance. Spencer Link to comment https://forums.phpfreaks.com/topic/187006-changing-the-content-of-an-flv-player-client-side/ Share on other sites More sharing options...
trq Posted January 3, 2010 Share Posted January 3, 2010 Anything client-side has nothing to do with php. I think your in the wrong board. Link to comment https://forums.phpfreaks.com/topic/187006-changing-the-content-of-an-flv-player-client-side/#findComment-987579 Share on other sites More sharing options...
spenceddd Posted January 3, 2010 Author Share Posted January 3, 2010 Ah yes sorry I will move it now. Link to comment https://forums.phpfreaks.com/topic/187006-changing-the-content-of-an-flv-player-client-side/#findComment-987679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.