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
https://forums.phpfreaks.com/topic/133427-media-player-embed-src-change/
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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.