Streaming .pl[b][/b]s files

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Streaming .pl[b][/b]s files

Post by theda »

Does anyone know of a code that would stream .pls (Shoutcast radio files) on a website? As in embedded .pls files? I know <embed> but it doesn't work for .pls files...

Edit: Ignore the bold tags in the title. For some reason typing .pls turns into .please without them.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

Shoutcast files don't stream without a player for them. The players for shoutcast (winamp) do not offer a web-plugin that embeds them to pages.

The closest you can come is with the object tag, which will open the player if the player is already associated with that file type.
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

Actually, .pls also plays in Quicktime and RealPlayer, and both have web-plugins.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

theda wrote:Actually, .<span style='color:blue' title='ignorance is bliss'>please</span> also plays in Quicktime and RealPlayer, and both have web-plugins.
Huh.. you learn something new everyday.
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

Still waiting for an answer :P
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

theda wrote:Still waiting for an answer :P
The answer is there, its just not clear, so let me help.

If the user has Quicktime or Realplayer installed, then you should get an embedded player if you code it right.

Of course, you can just read it from the horses mouth:

Apple's page on playing shoutcast streams in a webpage, using the quicktime player.
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

Um, I tried that, but it didn't quite work... It just showed some quicktime symbol and never loaded the stream.
Post Reply