Weasel Radio Second Life Interface
v1.6-09022007
Second Life is a registered trademark of Linden Labs.
Weasel Systems is not affiliated with Linden Labs or Second Life in any way.
Stream Usage:
It is recommended to use the Ogg Vorbis (RELAY-4) stream, as it sounds better than the SHOUTcast streams.
Additionally, Second Life has built-in support for the Ogg Vorbis audio format, via FMOD.
If you use http://weasel.net as the stream url, it will automatically detect and redirect clients to the Ogg Vorbis stream.
SHOUTcast, 32Kbps:
WEASEL-1 Relay Server 1: Maximum 70 listeners
WEASEL-1 Relay Server 1: http://relay-1.weasel.net:8230
WEASEL-1 Relay Server 1: http://85.17.174.181:8230
WEASEL-1 Relay Server 2: Maximum 10 listeners
WEASEL-1 Relay Server 2: http://relay-2.weasel.net:9999
WEASEL-1 Relay Server 2: http://72.44.82.55:9999
WEASEL-1 Relay Server 3: Maximum 10 listeners
WEASEL-1 Relay Server 3: http://relay-3.weasel.net:9999
WEASEL-1 Relay Server 3: http://75.44.29.24:9999
Ogg Vorbis, 32Kbps:
WEASEL-1 Relay Server 4: Unlimited listeners
WEASEL-1 Relay Server 4: http://relay-4.weasel.net:9090/weasel-1.ogg
WEASEL-1 Relay Server 4: http://192.168.0.254:9090/weasel-1.ogg
Song Requesting:
Until the SL software is capable of incorporating client-side HTTP requests, it is not recommended to place requests using server-side LSL scripting. Due to the way the Weasel Radio server handles requesting, all requests done through the LSL servers would be throttled, regardless of how many users are placing requests, since they all pass through the same limited set of Linden IP addresses. Individual users should each place requests via their own unique IP addresses, therefore the preferred method using an externally launched web browser is encouraged.
Song Request URL:
http://www.weasel.net/?page=requests
If you pass the avatar name via the above URL, it will show any subsequent requests as having been placed by the avatar name (ie. it will automatically set the locale.) Here's an example, using Joe Smith:
Song Request URL:
http://www.weasel.net/?page=requests?llAvatar=Joe%20Smith
Song Info API Syntax:
Song search by string:
http://weasel.net/sl.php?mode=search&q=string
Currently playing song + who requested it:
http://weasel.net/sl.php?mode=info
Current song time remaining (in seconds):
http://weasel.net/sl.php?mode=songtime
List of songs in the queue:
http://weasel.net/sl.php?mode=queue
Number of songs in the queue:
http://weasel.net/sl.php?mode=qcount
This script's version:
http://weasel.net/sl.php?mode=version
NOTE: There is a 5-second throttle on HTTP requests to this script. It is encouraged to use the Song Time Remaining function to time your script's attempts at accessing this API. Attempts to connect more than once every 5 seconds will result in an HTTP 503 retry response from the server. This is only to avoid HTTP server overhead and log spam on my end. As far as I know, Linden's servers do honor HTTP 503 responses. ^_^