streaming audio

K

kjk

Hi Folks,

I've added streaming audio to a web page by using the following HTM
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>

. . . but the music stops playing when the listener moves to another
web page. Can somebody tell me how to edit that code so that the
player opens as a popup, which will then continue playing even if
listener moves to another web page? Any advice would be much
appreciated. Thanks.

Ken
 
A

Amos E Wolfe

kjk said:
Hi Folks,

I've added streaming audio to a web page by using the following HTM
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>

. . . but the music stops playing when the listener moves to another
web page. Can somebody tell me how to edit that code so that the
player opens as a popup, which will then continue playing even if
listener moves to another web page? Any advice would be much
appreciated. Thanks.

Ken

I would suggest a more simple solution, as in the example on the following
page:

http://www.doctorbusker.com/music.php

Each link to play a streaming audio clip is a simple link such as <a
href="http://www.doctorbusker.com/music/drunk-128.m3u">Link</a> - what
happens next is that the associated application on the user's computer takes
over, and loads the file with the ".m3u" extension. That file is a
"playlist" which contains only the url of the mp3 file which is to be
streamed.

Simple, and allows the end user to use his or her preferred application to
handle the file. Have a direct download link below in case they have no
application configured for streaming or want to download and save. Of course
with another program handling the music (e.g. Windows Media Player, Winamp,
etc.) changing the page in the browser by clicking a link won't affect the
playback.
 
T

Travis Newbury

I've added streaming audio to a web page by using the following HTM
code . . .
. . . but the music stops playing when the listener moves to another
web page.

Here is some advice:
Maybe the user is going to another page to "get away" form the music
you forced on them on the last page?
 
E

El Kabong

Amos E Wolfe said:
Simple, and allows the end user to use his or her preferred application to
handle the file. Have a direct download link below in case they have no
application configured for streaming or want to download and save. Of
course with another program handling the music (e.g. Windows Media Player,
Winamp, etc.) changing the page in the browser by clicking a link won't
affect the playback.

Correct, and, best of all it preserves the visitor's right to _choose_
whether or not he or she listens at all instead of beginning automatically
on arrival.

El
 
A

Animesh K

El said:
Correct, and, best of all it preserves the visitor's right to _choose_
whether or not he or she listens at all instead of beginning automatically
on arrival.

El

What do you all think of flash based MP3 or RBS format player? I know
one problem with it: it exposes the source mp3 file, but my take is that
one can record any music using audacity or similar sound recording tools.

I am planning to include a flash based mp3 player in the next version of
my website. A glimpse of the audio player can be found at the following
page: http://www.1pixelout.net/code/audio-player-wordpress-plugin/


Best regards,
Animesh
 
E

El Kabong

What do you all think of flash based MP3 or RBS format player? I know one
problem with it: it exposes the source mp3 file, but my take is that one
can record any music using audacity or similar sound recording tools.

I am planning to include a flash based mp3 player in the next version of
my website. A glimpse of the audio player can be found at the following
page: http://www.1pixelout.net/code/audio-player-wordpress-plugin/

Can't say too much about it, personally, because I haven't come across it
before your post.I live a sheltered life.

It loaded very fast and had adequate sound quality without any skips (I'm on
DSL) Might be a solution--when you really _need_ audio. Of course, as long
as it's optional and doesn't affect download time, there isn't much of a
valid complaint regarding it.

Folks who don't like it should resist the overwhelming urge to click it just
so they can complain about it. After all, we'll just ignore them in turn
because we know they're just trying to practice their whine.

Good luck with it.

El
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,573
Members
45,046
Latest member
Gavizuho

Latest Threads

Top