I asked this question a few weeks ago and have tried so many ways to find a solution but haven’t had any luck. I’m trying to create an embedded media player which allows the user to play any song available of their choice. When they click the radio button for a song it starts playing the song in the player. Well I can get it to switch songs when a radio button is clicked in IE but not in Firefox and it’s been driving me crazy.
[CODE]<object id=”music” height=”300″ width=”300″ classid=’CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95′
codebase=’http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701′
standby=’Loading Microsoft Windows Media Player components…’ type=’application/x-oleobject’>
<!– Change to value=0 to hide status –>
<param name=”fileName” value=”http://www.mysite.com/song1.wma”/>
<param name=”ShowStatusBar” value=”1″/>
<param name=”AudioStream” value=”-1″/>
<param name=”AutoSize” value=”1″/>
<param name=”AnimationAtStart” value=”1″/>
<embed type=”application/x-mplayer2″ pluginspage=”http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/” src=”http://www.mysite.com/song1.wma” name=”MediaPlayer” autostart=”true” loop=”false” height=”300″ width=”300″></embed>
</object>
<br/>
<input id=”song1″ onclick=”document.getElementById(‘music’).filename=document.getElementById(‘song1’).value” type=”radio” name=”Music” value=”http://www.mysite.com/song1.wma” checked=”checked”/> song 1 <br/>
<input id=”song2″ onclick=”document.getElementById(‘music’).filename=document.getElementById(‘song2’).value” type=”radio” name=”Music” value=”http://www.mysite.com/song2.wma” /> song 2<br/>
Any help or advice will be appreciated.
Thanks.