Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Using llSetParcelMusicURL

Aldous Writer
Registered User
Join date: 31 May 2007
Posts: 8
09-01-2008 11:31
I am using llSetParcelMusicURL to listen to an mp3 stream over the internet.
The script works properly, but after about 4 minutes the stream stops and I can't hear anything more.

Any ideas/suggestions ??

thank you
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
09-01-2008 11:39
Unless something is changing the URL I can't see how this is a scripting issue. Try listening to the stream in another media player like Winamp to see if it also stops there.
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
09-01-2008 12:49
This may not be relevant as I don't know what your environment is, but I personally find that I get unreliable behaviour on any stream operating above 64K. As a general rule of thumb, I find that keeping streams down to 24K allows anyone in the world to hear them reliably with little perceptual loss in quality, especially as audio streams in SL tend to be primarily background. Any true Audiophile would rather listen on a HiFi than in SL if they really wanted to hear the music the way the artist intended.
Aldous Writer
Registered User
Join date: 31 May 2007
Posts: 8
09-01-2008 14:32
I did a couple of additional tests:
- I played the mp3 file using windows media player and it worked properly
- I download the mp3 file and the sl player played it properly fom a file://c:\test.mp3 file.

The problem seems to appear only when I try to specify the remote url to the llSetParcelMusicURL interface. In such a case the music stops to play after about 4 minutes.
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
09-01-2008 16:51
The problem is that llSetParcelMusicURL() does exactly that. It sets the URL and that's all it does so if the stream stops working later, that really can't be a scripting issue unless that script, or some other script, is changing the URL 4 minutes later. If that's happening, you'd easily be able to see that by looking at the parcel's media settings.
Aldous Writer
Registered User
Join date: 31 May 2007
Posts: 8
09-02-2008 12:52
Thank you everybody. Yes, indeed llSetParcelMusicURL is behaving correctly by setting the proper URL. And it is not changed after 4 minutes. So the problem that the stream is stopping must depend on other causes.
Maybe it is due to the stream reader or to the server itself that is blocking communication after few minutes.
Does anyone know any reference material to point me to for further analysis ? Any trace that I can activate ?

thx