Prady
Prady

Reputation: 11300

How to stream an mp3 over web?

How can I stream an MP3 in a html page? I am looking for a solution, which does not allow user to download of MP3 content, while allowing user to play it.

Upvotes: 1

Views: 3586

Answers (3)

Jé Queue
Jé Queue

Reputation: 10653

No one mentioned the <audio> tag?

http://www.w3schools.com/html5/tag_audio.asp

Upvotes: -1

spender
spender

Reputation: 120380

The Flash Player remains the best means of doing this if you want to reach the largest audience. JWPlayer wouldn't be a bad choice.

Upvotes: 2

Sudantha
Sudantha

Reputation: 16194

This way requires the Media Player Plugin


Use Media Player object/embed code:**

<OBJECT ID="MediaPlayer1" 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" width="280" height="46">
<param name="fileName" value="http://www.domain.com/music/music.m3u">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.domain.com/music/music.m3u" name="MediaPlayer1" width=280 height=46 autostart=1 showcontrols=1 volume=-300>
</OBJECT>

replace your playlist or MP3 File

<param name="fileName" value="http://www.domain.com/music/music.m3u">

Upvotes: 0

Related Questions