Reply to Re: streaming audio

Your name:

Reply:


Posted by Amos E Wolfe on 06/19/07 17:22

"kjk" <kjkREMOVE@usa.com> wrote in message
news:na1g73hbjkqq51o5fba2fjkdcnnhidvgj4@4ax.com...
> 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.



--
-=# Amos E Wolfe #=-
AIM: Traindriver9334
Get Firefox: http://www.spreadfirefox.com/?q=user/register&r=122394

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация