Old 18th March 2004, 19:40   #1
someToast
Member
 
someToast's Avatar
 
Join Date: Aug 2002
Location: Minneapolis, MN
Posts: 67
Play an audio file only when server is full?

When my server's full, I want people connecting to hear a brief, recorded audio message, but I don't want that same message played at the start of each and every stream when the server isn't full.

Could a .pls file do this? Specify the stream address first and a file in the content directory second? (And what would be the syntax for that?)

Assuming this can be done, I've never used a .pls file on the server before. If I explicitly name the file "listen.pls", will that file then be what's called up when someone connects from their existing Winamp/iTunes favorite stored in their media player (from before any .pls file existed)?

.
someToast is offline   Reply With Quote
Old 18th March 2004, 19:46   #2
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
info on pls files but essentially what you are asking will work in a playlist.

http://forums.radiotoolbox.com/viewtopic.php?t=76

As to your second question, no.

Typically players use the exact address and connect directly to the server.
Jay is offline   Reply With Quote
Old 18th March 2004, 20:16   #3
someToast
Member
 
someToast's Avatar
 
Join Date: Aug 2002
Location: Minneapolis, MN
Posts: 67
Excellent... thanks for the info!

Quote:
Originally posted by KXRM
As to your second question, no.

Typically players use the exact address and connect directly to the server.
The existing link in the player looks like "http://domain.com:8000/". There's no .pls file name that would act as sort of a "index.html equivalent" for Shoutcast to call up when the player accesses that address?

.
someToast is offline   Reply With Quote
Old 18th March 2004, 20:26   #4
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
listen.pls is there for browser's not players. Players simply don't need them to connect to your stream. SHOUTcast sends all non-mozilla clients the actual stream so index.html is not seen by the player.
Jay is offline   Reply With Quote
Old 19th March 2004, 07:42   #5
someToast
Member
 
someToast's Avatar
 
Join Date: Aug 2002
Location: Minneapolis, MN
Posts: 67
If I just specify an IntroFile, will that get played to a client when the server is full, or does Shoutcast deny any connection whatsoever in that case?

.
someToast is offline   Reply With Quote
Old 24th March 2004, 20:30   #6
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
any connection to the live stream is denied. The intro file will only be sent when they can connect to the stream, not when they can't.
Jay is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump