|
Ikonn Giano
Registered User
Join date: 15 Dec 2007
Posts: 126
|
01-01-2008 18:13
Hello all,
I am trying to learn to build a media play\TV for my self but cant find anything good on media scripts other then freeview. Would just like it to read notcards for links so i dont have to type them in evey time I am will to work somthing out for any help. Even just a good link to find info on how to do it?
Thanks
|
|
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
|
Will need a menu
01-01-2008 22:10
Well, you'll need a menu if you are going to read from notecards, so you have to use the llGetNotecardLine, as well as parsing, cuz the menu buttons won't hold the characters of a full url. Your notecard will look something like My Show| http://www.myserver.com/directory/directory/myshow.movAnotherShow| http://www.myserver.com/directory/directory/thatothershow.movand so on.. your script will need to read the card to a list, parse that list to strings, and use variables to pass the place "0" strings as buttons to your menu list, then pass the associated urls in place "1" to your PARCEL_MEDIA_COMMAND_URL when the button is clicked. You will need a menu because if you don't use one, and set up a loop to read multiple urls in your notecard, it will just read them all in about 2 seconds and always play the last one.
|
|
Ikonn Giano
Registered User
Join date: 15 Dec 2007
Posts: 126
|
Radio Script Menu
01-01-2008 23:25
ElQ Homewood thanks for the reply but i dont know so much about scripting kinda learning as I go from some of the post I have read they said most people have used the Beckys radio script so that is what i was trying to do. Here is what I got so far but I get an error at (289, 45) : ERROR :Name not defined within scope The line I changed was llSetParcelMusicURL(newURL); to llPARCEL_MEDIA_COMMAND_URL(newURL); Do you know where I can find a better sample to work off? else if ((integer)message > 0 && (integer)message < 256) { curIdx = (integer)message - 1; string newURL = llList2String(_radioURLs, curIdx); string newDesc = llList2String(_radioStations, curIdx); llSay(0, "setting station " + message + ":"  ; llSay(0, newDesc + " = " + newURL); llPARCEL_MEDIA_COMMAND_URL(newURL); } } }
|