Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Streaming music in headphones

Mikasi Nakajima
Registered User
Join date: 18 Feb 2008
Posts: 3
02-21-2008 21:31
I'd like to make a pair of headphones that would stream our radio station whenever the user wore them. However I cannot find any functions in the LSLWiki that would suggest this is possible.

Is it possible to have a user-object play music just to that user, or am I searching for something that isn't there?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-21-2008 22:13
Unfortunately I don't think you really can, unless maybe the headphones were to work only on your land. Then you could possibly use a video ("media";) stream to send the audio to the listeners, by means of llParcelMediaCommandList() and the PARCEL_MEDIA_COMMAND_AGENT command (to make each listener separate). Objects owned by the landowner would have to do the real work though; the headphones (since attachments have to belong to their wearers and only the landowners' object can issue media commands) would just be informational devices that would provide the identities to the landowner's objects and possibly a user interface to the wearer (volume, start/stop, etc.).

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llParcelMediaCommandList
Mikasi Nakajima
Registered User
Join date: 18 Feb 2008
Posts: 3
02-21-2008 22:36
From: Hewee Zetkin
Unfortunately I don't think you really can, unless maybe the headphones were to work only on your land. Then you could possibly use a video ("media";) stream to send the audio to the listeners, by means of llParcelMediaCommandList() and the PARCEL_MEDIA_COMMAND_AGENT command (to make each listener separate). Objects owned by the landowner would have to do the real work though; the headphones (since attachments have to belong to their wearers and only the landowners' object can issue media commands) would just be informational devices that would provide the identities to the landowner's objects and possibly a user interface to the wearer (volume, start/stop, etc.).

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llParcelMediaCommandList


Thanks. I did see this command, and it is close, but I was really hoping for something where the user could listen on any parcel. I've seen some headphones on sale that seems to offer a few music tracks, but I haven't bought any, so I don't know if the music is embedded in the object, or if it works on a certain parcel only. Also, I want mine to play a live stream, which doesn't seem possible at this time.

Thanks for the help though ^.^
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-22-2008 01:27
Right. I THINK those will generally play premade sound clips. You could also send the user to a URL so their browser (or other URL handling program) will play media straight from the WWW, but I know that's probably "not quite the same." Heh.
Mikasi Nakajima
Registered User
Join date: 18 Feb 2008
Posts: 3
02-25-2008 00:24
From: Hewee Zetkin
Right. I THINK those will generally play premade sound clips. You could also send the user to a URL so their browser (or other URL handling program) will play media straight from the WWW, but I know that's probably "not quite the same." Heh.


This is what I ended up doing. Thanks.