This is a parcel radio “tuning” script, which provides a dialog menu of owner-picked stations (up to 12) to users. Has full access control; default access can be owner-only, group, or everyone, and that can then be modified by whitelisting or blacklisting individual avatars. The script is supplied full perms for resale as part of radio objects (but not for resale with copy & transfer permissions).
PLEASE NOTE: The owner of the radio object MUST be the owner of the land the radio is on, for this to work. If the land is deeded to a group, the object must be deeded to the same group. See the LSL command http://wiki.secondlife.com/wiki/LlSetParcelMusicURL for details.
This would be well suited to a club environment, where the owner puts down this radio to allow club staff to change media stream, but there are plenty of other uses too (personal use radio with a few favourite channels, for example).
To get started, copy the script and the supplied Configuration notecard into your radio object. It will load the notecard, which provides two sample radio stations and sets the access permissions to “everyone”. Click the radio to bring up the dialog menu, then click a radio station name to “retune” to it.
To reconfigure the radio, edit the included notecard. Lets start with the supplied notecard as an example:
station=Sanitarium FM http://www.sanitarium.fm:8000/
Line by line, this example:
- Sets the access control to “everyone”, as opposed to “owner” or “group”. Please note that for group access; the user’s ACTIVE (as in the one in the tag above their name) must match the group of the radio object.
- Whitelists Xugu Madison (myself); this doesn’t make a difference with the access control set to everyone, but if it was set to owner/group access then it would allow me to use the radio anyway. You probably want to remove this line!
- Blacklists Doctor Evil (who I’m hoping doesn’t and never will exist on the grid). This means that they can never use the radio, irrespective of the access default.
- Sets up a station called “RadioRadio” with the URL http://media1.servercave.com:15822/radioradio.ogg
- Sets up a station called “Sanitarium FM” with the URL http://www.sanitarium.fm:8000/ -
please note however that LSL does not support dialog menu buttons over 12 characters in length, so this is trimmed to “Sanitarium F”.