Jump to content

CHanging the movie in an flv player client side..


spenceddd

Recommended Posts

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:

 

 
[select]
<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]
    <select name="movie" onChange="updateMov(this, 'FLVPlayer')">          <?php echo buildMoviesFileList('uploaded/movies/',$row_chosen_pItem['movie']); ?>        </select>

 

...and here is the javascript code:

 

 

  [select]
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
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.