Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

parcel media command agent - not working?

2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
08-19-2009 06:26
Hi,

I am trying a simple script working that changes the music URL on land that I own. I want to use llParcelMediaCommandList with PARCEL_MEDIA_COMMAND_AGENT so that each agent has their own stream.

I can't seem to get this working:

llParcelMediaCommandList([
PARCEL_MEDIA_COMMAND_AGENT, id,
PARCEL_MEDIA_COMMAND_TYPE, "audio/*",
PARCEL_MEDIA_COMMAND_URL, "http://scfire-mtc-aa04.stream.aol.com:80/stream/1007" ]);

I tried the music URL directly in the Music URL field in the About Land's Media tab to make sure that it works. I own the land (not group owned land), and llSetParcelMusicURL works.

I am running SL on a MacBook Pro, if that makes any difference. I have also tried variations of the media type (audio/mp4, audio, and unspecified) and called PARCEL_MEDIA_COMMAND_STOP along with PARCEL_MEDIA_COMMAND_PLAY in separate calls to llParcelMediaCommandList - no change.

I thought this was supposed to work - any ideas?
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
08-19-2009 11:04
did you try audio/mpeg ? (I get it as an mp3 stream)
_____________________
|
| . "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...
| -
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
08-19-2009 12:17
From: Void Singer
did you try audio/mpeg ? (I get it as an mp3 stream)


Yup - audio/mpeg and a few other variations - none work (including audio/* and just leaving out the type altogether).

I have asked around - some mention that they have better luck with video than audio.

Does this *really* work?
Spectre Draconia
Pew Pew
Join date: 16 Jun 2009
Posts: 4
08-19-2009 12:24
i know video works, i saw it done the other day at a friends house on a DVD player... havn't seen audio streams like this tho.
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
08-19-2009 14:14
I use the media system extensively in my products and I've found that Audio streams through parcel media have been borked since they added html on a prim to the mix. I don't know what they did, but Audio Media hasn't worked right for me ever since.
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
08-19-2009 15:12
From: ElQ Homewood
... I've found that Audio streams through parcel media have been borked since they added html on a prim to the mix...


Nice - at least I know it's broken :)

Thanks -2fast
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
08-20-2009 07:47
Hmm. Works for me. On Linux, but I can't imagine that being an advantage for streaming media. I added a PARCEL_MEDIA_COMMAND_PLAY to the end of the list, just to get it to start automatically, but the OP says that was tried already, so don't think that really has anything to do with it.

You're sure you have the object deeded to whomever owns the parcel, right?

Did you try the non-_AGENT version? (That also works for me.) And/or equivalently, typing in the URL to the parcel Media (not Music) field in About Land?

[ETA: May have spoken too soon about Linux being no advantage. Still working fine on Linux viewer 1.23.4; on Windoze, same viewer version, it switches the media control to playing, but no sound from parcel media audio stream in any way I've tried to set it, but video stream sound works fine.]

[ETA further: On my Linux install, it is perfectly happy to play audio streams with _TYPE specified as "video/*"--in which case it uses the little "projector" icon next to the media play button. When it plays it as "audio/*" it uses the document icon, as if it were a webpage, but plays the audio stream anyway. I'm thinking that the sim isn't sending the viewer that audio _TYPE information correctly, and my Linux/gstreamer install just doesn't care, maybe.]
_____________________
Archived for Your Protection