Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Streaming audio from external MP3 file

Kujila Maltz
lol
Join date: 6 Aug 2005
Posts: 444
09-16-2005 14:19
Someone I saw had a script where a user pasted in a HTTP url of an mp3 file, and the script streamed it from the external site into SecondLife.

Can anyone please direct me to where I can find a script to do this?

Thanks a ton =)
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
09-16-2005 14:32
Take a look at the script here:
http://secondlife.com/badgeo/wakka.php?wakka=llSetParcelMusicURL
Pop that in an object and say "radio: <URL>" (without quotes) in world, replacing <URL> with the URL of the MP3.
==Chris
Kujila Maltz
lol
Join date: 6 Aug 2005
Posts: 444
09-16-2005 14:43
Hey thanks a ton man! =D

Is there any way to do that for video files as well?
Jsecure Hanks
Capitalist
Join date: 9 Dec 2003
Posts: 1,451
09-16-2005 14:54
If you want a really cool way to stream loads of MP3 files, check out the Static Streaming on offer at http://www.jddlan.com/streaming.php

It's the popular streaming package that's spreading through SL clubs and bars like wildfire :)
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
09-16-2005 14:58
Sure:
CODE

default
{
state_entry()
{
llListen(0,"",llGetOwner(),"");
}
listen(integer channel,string name,key id,string msg)
{
string lmsg=llToLower(msg);
if("video: "==llGetSubString(lmsg,0,6))
{
llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_URL,
llGetSubString(msg,7,-1), PARCEL_MEDIA_COMMAND_PLAY]);
}
}
}


With this, say "video: <URL>" without quotes to switch the stream.
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Kujila Maltz
lol
Join date: 6 Aug 2005
Posts: 444
09-16-2005 15:50
You are a god, Christopher Omega XD

Thanks... =)

Jsecure Hanks:

Thanks for the link, I will definitely look into that =D
Emma Soyinka
Got moo? o_o
Join date: 13 Sep 2005
Posts: 218
09-16-2005 16:11
That streaming mode is one song per parcel, one at a time though, right?
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
09-16-2005 16:21
Pretty much, but what you stream isn't really defined by the script, it's defined by what you point the parcelmedia URL at.

As a for-instance if I edited together my favourite music mixes and saved them as a single mp3 then put them in a suitable place playing one mp3 would play a string of songs predefined.

Alternatively I could get a streaming server and a broadcaster and point the URL at the relevant place and play (and edit live) my music stream.

The coding would stay the same in world, the out world sources would be different and would do different things.
Jsecure Hanks
Capitalist
Join date: 9 Dec 2003
Posts: 1,451
09-16-2005 16:28
My Static Streams will happily and easily let you play a whole playlist of your choosing :)

You should really check it out, it lets you finally add a soundtrack to your home or business :)

You can get that in-store or in-home ambience you've always been waiting for :)

http://www.jddlan.com/streaming.php
Kujila Maltz
lol
Join date: 6 Aug 2005
Posts: 444
09-16-2005 17:42
Do you have to own the land to stream or something? I'm not having any success =[

[EDIT]

Oh I read you must own the land.

Oh. ^^

My bad.

Well, thanks for the help anyhow, everyone! =)