Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Streaming Media (videos) Player starter scripts?

Christif Vaher
Registered User
Join date: 24 Jun 2008
Posts: 51
09-19-2008 10:18
Can anyone point me towards a basic streaming media (videos) player script? I am looking for just a basic framework to help me learn the flow / commands. I thank you in advance.
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
09-19-2008 15:21
A basic media player (i.e. just playing one video) doesn't need scripts at all. You just use your "About Land" dialog to set it all up in the media tab, and apply the media texture to an object, and that's it.

Is there some other functionality you're looking for?
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
09-19-2008 16:03
Start, by looking at these pages:

Up-to-date technical listing here: http://wiki.secondlife.com/wiki/LlParcelMediaCommandList
A bit more info here (older): http://rpgstats.com/wiki/index.php?title=LlParcelMediaCommandList


Up-to-date technical listing here: http://wiki.secondlife.com/wiki/LlParcelMediaQuery
A bit more info here (older): http://rpgstats.com/wiki/index.php?title=LlParcelMediaQuery
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
09-20-2008 02:11
One of the most comprehensive video/media scripts is posted in the library, take a look here:
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
09-20-2008 13:04
i made a very basic load video button script (video must me playable in quicktime)
first you have to set a prim screen with your video texture.
and on land propertys media tab set that texture (replace texture)

CODE

//Load Video Button by Lightwave Valkyrie
default
{

state_entry()
{
llSetText("Daft Girls",<1,1,1>,1.0); //put floating text of name of video
}

touch_start(integer total_number)
{
llParcelMediaCommandList( [PARCEL_MEDIA_COMMAND_URL, "http://youtubemp4.com/video/MnL1xE1WFe0.mp4" ] );//put link to video here
llSay(0,"Loading...");
llParcelMediaCommandList ( [PARCEL_MEDIA_COMMAND_STOP] );
llSleep(1);
llParcelMediaCommandList ( [PARCEL_MEDIA_COMMAND_PLAY] );
llSay(0, "Playing");
}
}
[\code]

this uses 1 prim button per video currently but when we can use llDetectedTouchST(0);
there can be lots more per prim
also i found if your running your own server to host convert your files to .3gp
it will take much less space and load faster. as well as play at close to the same time for most ppl.
~LW
ps. currently i have gotten a new server for my videos and am up loading them
but when its back up soon come to
http://slurl.com/secondlife/Kaili/150/200/27
to see my 9 prim video chooser
"Lightwave's Anime Videos"
_____________________
L$ is the root of all evil
videos work! thanks SL :)
Christif Vaher
Registered User
Join date: 24 Jun 2008
Posts: 51
09-20-2008 13:44
Thank you for all the replies. This definitely helps. Once again the forums have met the need.
ZhouLiang Wirefly
Registered User
Join date: 8 Oct 2008
Posts: 2
10-09-2008 00:12
Can I point the URL to a WMV stream other than MOV format?

As I only have MS stream server, if the answer is negative, how do I solve this?

Thank you!
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
10-09-2008 04:56
I think quicktime can play mp4 but not wmv.
you would need to convert the format and I am not sure if windows can stream mp4 so you may need a 3rd party streamer too.