Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to toggle to play parcel audio stream?

Holocluck Henly
Holographic Clucktor
Join date: 11 Apr 2008
Posts: 552
09-06-2009 11:15
Click to toggle parcel radio?

I really thought the building tools would have this as an option for left-click.

Apparently they don't, so how can it be done? Just the set parcel radio, not a channel switcher?

Thanks!
_____________________

Photostream: www.flickr.com/photos/holocluck
Holocluck's Henhouse: New Eyes on the Grid: holocluck@blogspot
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
09-06-2009 11:23
http://wiki.secondlife.com/wiki/LlSetClickAction
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Holocluck Henly
Holographic Clucktor
Join date: 11 Apr 2008
Posts: 552
09-06-2009 11:50
Thanks. The problem with this though is that it does not apply to the radio. By parcel media it refers to the media entry above radio on that screen in land properties. With a set texture this will play movies, display a webpage, etc., but not play the parcel radio.
_____________________

Photostream: www.flickr.com/photos/holocluck
Holocluck's Henhouse: New Eyes on the Grid: holocluck@blogspot
EF Klaar
Registered User
Join date: 11 Jun 2007
Posts: 330
09-06-2009 11:52
I've probably got hold of the wrong end of the stick here, but are you looking for the Music URL setting in the Media tab of About Land, which comes up on the pie menu when you right-click on your land?

Or through the land edit box. The Music URL "radio" setting runs across the middle of that.
Holocluck Henly
Holographic Clucktor
Join date: 11 Apr 2008
Posts: 552
09-06-2009 11:53
Yup

I am making an object with a switch to toggle the parcel music on and off.
_____________________

Photostream: www.flickr.com/photos/holocluck
Holocluck's Henhouse: New Eyes on the Grid: holocluck@blogspot
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
09-06-2009 11:59
i don't think you can turn it on or off as if clicking the play button on the viewer, you can however remove and add the url to the music url settings. haven't really checked if it will automatically start playing if you're already in the parcel though when there's no media set
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Holocluck Henly
Holographic Clucktor
Join date: 11 Apr 2008
Posts: 552
09-06-2009 12:02
Is that how it works? Removing the URL on and off it plays automatically? But then if someone does not have the music button clicked they'll never hear anything, correct?
_____________________

Photostream: www.flickr.com/photos/holocluck
Holocluck's Henhouse: New Eyes on the Grid: holocluck@blogspot
EF Klaar
Registered User
Join date: 11 Jun 2007
Posts: 330
09-06-2009 12:02
I think I see what you mean. As far as I'm aware to turn it off you must put a blank in the box there and to turn it on, a working music URL. So your object will need to call llSetParcelMusicURL with an empty string to turn it off and with a URL to turn it on.

And please feel free to tell me to go away and let the big boys sort this out if I'm misunderstanding what you're asking :)
Holocluck Henly
Holographic Clucktor
Join date: 11 Apr 2008
Posts: 552
09-06-2009 12:04
I revised my previous post - and for someone like me, you're one of the big boys

LOL
_____________________

Photostream: www.flickr.com/photos/holocluck
Holocluck's Henhouse: New Eyes on the Grid: holocluck@blogspot
EF Klaar
Registered User
Join date: 11 Jun 2007
Posts: 330
09-06-2009 12:10
"Is that how it works? Removing the URL on and off it plays automatically? But then if someone does not have the music button clicked they'll never hear anything, correct?"

That is my understanding too.
Holocluck Henly
Holographic Clucktor
Join date: 11 Apr 2008
Posts: 552
09-06-2009 12:16
rasserfrasser grumble...

Why is it I always make something I think will be easy, and it either takes advanced scripting skill or is impossible?!
_____________________

Photostream: www.flickr.com/photos/holocluck
Holocluck's Henhouse: New Eyes on the Grid: holocluck@blogspot
EF Klaar
Registered User
Join date: 11 Jun 2007
Posts: 330
09-06-2009 16:27
From: Holocluck Henly
rasserfrasser grumble...

Why is it I always make something I think will be easy, and it either takes advanced scripting skill or is impossible?!

lol, this *is* easy :)

CODE

integer switch = FALSE;

default
{
touch_start (integer ignore_me)
{
switch = !switch;
if (switch)
{
llSetParcelMusicURL ("http://87.98.250.247:8426");
}
else
{
llSetParcelMusicURL ("");
}
}
}


Note that for this to work, the object containg the script must be owned by the owner of the land. If the land is owned by a group, the object must be deeded to the group.
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
09-06-2009 20:01
From: EF Klaar
lol, this *is* easy :)

CODE

integer switch = FALSE;

default
{
touch_start (integer ignore_me)
{
switch = !switch;
if (switch)
{
llSetParcelMusicURL ("http://87.98.250.247:8426");
}
else
{
llSetParcelMusicURL ("");
}
}
}


Note that for this to work, the object containg the script must be owned by the owner of the land. If the land is owned by a group, the object must be deeded to the group.

yes that is easy, but it seems holocluck was wanting to use a prim to control the play/stop button on the viewer, which i assume, could be done with a modified viewer, maybe a plugin for RLV?
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Raster Teazle
Registered User
Join date: 13 Sep 2005
Posts: 114
09-06-2009 21:53
The media controls for audio and video streaming are persistent. Once you set the control to off or on it should stay that way even on a re-log. If the control is off changing the land media setting will not be detected. If the control is on changing the land media setting will be detected. There is no LSL function to turn on or off the media controls.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
09-07-2009 04:19
http://wiki.secondlife.com/wiki/LlParcelMediaCommandList perhaps?

same caveats as Ruthven mentioned, doesn't need to wipe the url (when using play/stop/pause) but this controls the land stream for the owner only, with targeting for individual av's possible. (no help for viewer controls)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Raster Teazle
Registered User
Join date: 13 Sep 2005
Posts: 114
09-07-2009 20:24
That only applies to video and you still have to have the video media control set to play or nothing will happen. llParcelMediaCommandList() will not do anything for audio.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
09-08-2009 06:53
From: Raster Teazle
That only applies to video and you still have to have the video media control set to play or nothing will happen. llParcelMediaCommandList() will not do anything for audio.

couldn't remember if if it worked for basic audio... although there is a basic hack around... build your audio into a blank video container... probably more trouble than you want to go to for an audio stream though. lloks like wiping it out is your only choice.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -