Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can't unload media texture

Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
09-17-2006 15:33
Hey guys!

I've set up a basic media player but I can't get the thing to remove the video and replace it with the original texture. I'm using this:

llParcelMediaCommandList( [PARCEL_MEDIA_COMMAND_UNLOAD] );

which I'm informed should work, but it doesn't! Everything else works fine; the script checks to see if the player is already installed and if not, installs itself and plays a short file. Once it's done it's supposed to reset to the media texture.

I tried with a timer but that didn't work either so now I'm confused... there doesn't appear to be any parameters for me to get confused with! Any ideas?
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
09-17-2006 15:38
Try this:

CODE


llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_UNLOAD, PARCEL_MEDIA_COMMAND_URL, ""]);



this will unload the texture and set the URL to nothing.
Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
09-17-2006 15:59
A ha! That worked a treat! Now why didn't I think of that? D'oh!

Thanks loads, not only for the correct answer but for getting it to me so quickly!