Jump to content

Media Player embed src change


Sleeper

Recommended Posts

I have a player on my internetradiotopsites that will play featured stations. I have a drop down to chang the stations so the user can listen to differnt stations.

 

However my coding will not work in firefox or opera. I have tried to search everywere to find somthing with will change the src for the x-mplayer2 the same way the normal plug in works but I can. Any one have any ideas? Here is the code im using that works on IE but not firefox or opera

 

<code>

<OBJECT ID="JJI_Player" height="37" width="154" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112' standby='Loading...' type='application/x-oleobject'>

<param name="URL" value="http://sc1.jji-radio.com:9100" ref>

<param name="autoStart" value="1">

<param name="volume" value="15">

<param name="uiMode" value="mini">

<embed id="wmplayer" name="wmplayer" TYPE="application/x-mplayer2"

pluginspace="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&" 

FileName="http://sc1.jji-radio.com:9100"

Width="154"

Height="37"

ShowPositionControls="0"

ShowStatusBar = "False"

autoStart="1"

</embed>

</OBJECT>

</td>

</tr>

<tr>

<td>

<p align="center">

<select class="fields" id="inputURL" onChange="JJI_Player.URL = inputURL.value;JJI_Player.controls.play();" onChange="wmplayer.FileName = inputURL.value;wmplayer.controls.play();" size="1" name="D1" >

<option value="http://sc1.jji-radio.com:9100">-- Featured Station - Hookah Radio --</option>

<option value="http://www.tecknozone.com/lazonewebradio.asx">-- LA Zone Web Radio --</option>

<option value="http://sc.jji-radio.com:8158">-- Hamilton Radio --</option>

<option value="http://sc.jji-radio.com:8044">-- Party FM --</option>

<option value="http://cp1.digi-stream.com/castcontrol/playlist.php?id=222&type=asx">-- 1RockFm / Rocks Future Past --</option>

 

</select>

</code>

Link to comment
Share on other sites

I am well aware of that at this point, What I'm needing is a way to make it work. Dose one exist? I am sure there has to be a java script way of doing that. I have a script that can stop and start it, but haven't been able to figure out how to change the SRC value.

 

No offence but pointing out the issues that I'm saying I'm having isn't helping me answer the question of how to solve the issue.

 

Thanks for the responce on that though.

Link to comment
Share on other sites

sorry not the SRC but the Filename value. I just want that to change when the drop down changes. It works on the first coding wich only works in IE the <embed> part is the player that will work in Firefox and Opera.

 

So if it works there must be a way to change the Filename on the fly. I just cant figure that part out.

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.