/    Sign up×
Community /Pin to ProfileBookmark

embedded media player with multiple songs.

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/>
[/CODE]

Any help or advice will be appreciated.
Thanks.

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@Major_PayneJan 25.2008 — Think you will have to use the (ugh) embed tag for WMP to get FF to work. Or look the info over here:

[B]Flash Satay: Embedding Flash While Supporting Standards[/B]

Ron
×

Success!

Help @ss1289 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...