Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Radio script- adding your own URL

Jesseaitui Petion
king of polynesia :P
Join date: 2 Jan 2006
Posts: 2,175
09-21-2006 18:47
Hi, i searched and couldnt find a radio script where users can add their own URL.

I`m currently using a radio script I found on this forum in my rental community but tenants can not add their own url to the radio.


Can someone point me to a script that I could use in my radio so that by chat command or dialog menu they could put their own stream into the radio?


Please, and thankyou :D
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-21-2006 19:45
Try Bucky's Radio in the library:

/15/d6/129329/1.html
Jesseaitui Petion
king of polynesia :P
Join date: 2 Jan 2006
Posts: 2,175
09-24-2006 14:55
Hi, thanks, I looked at that before making this post and didnt see anything about users being able to add their own stations via a voice command, will try it out though...perhaps i overread that part.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-24-2006 15:42
Ah that is what I was just doing this week. Creating a script that gave me the ability to change menu buttons. But same priciple would work to add to a list of urls. But you would need to create or edit your own radio script.

It is in this thread:

/54/3f/138825/1.html

If you do not script and just want to be able to change the station there is always the obvious. Now this is a just in case you didn't know this type thing. You do know that you just have to click up top and get your land menu. You can then paste in a media url there. You can even do the same with video. I do it all the time and no matter what video played I have out at the time it will change to the new stream.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
bucky Barkley
Registered User
Join date: 15 May 2006
Posts: 200
09-24-2006 16:01
From: Jesseaitui Petion
Hi, thanks, I looked at that before making this post and didnt see anything about users being able to add their own stations via a voice command, will try it out though...perhaps i overread that part.



Hey there,

I do not have support for adding stations on the fly. My radio is strictly off the notecard, for the time being. Having said that, it will support ~50 stations, depending on memory/how much description you want to give each one.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
09-25-2006 04:03
My earlier radio's did support the add by chat feature. However it proved unpopular in the most part and was dropped in favour of just updateable notecards.

I'd suggest that it is far more convenient/robust a design to update the notecard and then reload rather than support user adding via chat. On re rez you dont lose anything for one and its not normally to slow unless you have a very large database of stations. I get around this by splitting the station list into smaller "Genre's".

I also produced a very simple interface which allowed direct setting on the music url via chat. It should really incorporate touch activation to improve performance / lessen sim resource usage but wasnt required when written originally.

CODE
// Newgate's Really Simple URL setter 

default
{
state_entry()
{
// originally on channel zero but thats soooo BAD!!!!!
llListen(9,"","","");
llSay(0,"Use /9 to set url i..e /9http://mymusic-channel");
}

listen(integer number, string name, key id, string message)
{
string str = llGetSubString(message,0,6);
if("http://" == str)
{
llSetParcelMusicURL(message);
}
}
}




Something I have been made aware of is that a number of previously working stations nolonger seem to play correctly (if at all) under the latest update(s)?

Its been suggested that its a change in SL that means they nolonger decode properly or that LL have dropped support for some formats? Has anyone else noticed this?
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
09-25-2006 04:18
I too make a radio with notecards etc.

I gave up on trying to support the stations. Some of the really big ones are pretty stable, but a lot of internet radio stations seem to turn over at a huge rate. It's possible the stations you are providing are just no longer current.
_____________________
Eloise's MiniMall
Visit Eloise's Minimall
New, smaller footprint, same great materials.

Check out the new blog
Jesseaitui Petion
king of polynesia :P
Join date: 2 Jan 2006
Posts: 2,175
09-25-2006 05:21
Thanks newgate, i`ll try that out; although not sure i know how to add that to my current radio script.


Thanks for all the replies, I too am in favor of a notecard but like (I believe?) i stated, this is not for me its for my rental community, i continually get people asking me "can you add my station to the radio" and its just not possible to always do that/a hassle. so I wanted a script where they could say like "/99url <streamhere>" and the like... that way they could all add their own streams/songs to the radio without needing my assistance :D
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
09-25-2006 06:55
From: Eloise Pasteur
I too make a radio with notecards etc.

I gave up on trying to support the stations. Some of the really big ones are pretty stable, but a lot of internet radio stations seem to turn over at a huge rate. It's possible the stations you are providing are just no longer current.


I agree there is cetainly an amount of that, but I think its slightly more sinister, stations that have been stable for a relatively long time have suddenly started giving problems. This is second or even third hand reporting, I'll try to get some more specific examples.

From: Jesseaitui Petion
Thanks newgate, i`ll try that out; although not sure i know how to add that to my current radio script.


I'd be inclined to

a) Add a new menu option called 'Add station'
b) Add a new handler for it that informs the user what to do ("type /99url=name,url";)
c) Start listening on channel 99 after setting a stale out time
d) Process any messages that arrive on 99 that start with "url=" stripping the station data.

You will obviously need to interface it into however your script stores its information.

I would also add a facility to dump the current list to chat so that you can regenerate the notecard. This would allow you to periodically incorporate the user made changes into the base list in case of crashes.

If you'd like a hand IM me, I'm usually on 21:00 - 00:00 GMT.