Fixed the looping on llParcelMediaCommandList, now PARCEL_MEDIA_COMMAND_PLAY will make the media play only once like its meant to, and PARCEL_MEDIA_COMMAND_LOOP can be used to make it loop.
parent
1195aca3b2
commit
86d48b73e1
|
@ -8058,6 +8058,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
if (!World.Permissions.CanEditParcel(m_host.ObjectOwner, landObject)) return;
|
||||
|
||||
bool update = false; // send a ParcelMediaUpdate (and possibly change the land's media URL)?
|
||||
byte loop = 0;
|
||||
|
||||
LandData landData = landObject.landData;
|
||||
string url = landData.MediaURL;
|
||||
|
@ -8096,7 +8097,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
break;
|
||||
|
||||
case ParcelMediaCommandEnum.Loop:
|
||||
loop = 1;
|
||||
commandToSend = command;
|
||||
update = true; //need to send the media update packet to set looping
|
||||
break;
|
||||
|
||||
case ParcelMediaCommandEnum.Play:
|
||||
loop = 0;
|
||||
commandToSend = command;
|
||||
update = true; //need to send the media update packet to make sure it doesn't loop
|
||||
break;
|
||||
|
||||
case ParcelMediaCommandEnum.Pause:
|
||||
case ParcelMediaCommandEnum.Stop:
|
||||
case ParcelMediaCommandEnum.Unload:
|
||||
|
@ -8230,7 +8241,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
mediaType,
|
||||
description,
|
||||
width, height,
|
||||
1); // TODO do some LOOP logic here
|
||||
loop);
|
||||
}
|
||||
}
|
||||
else if (!presence.IsChildAgent)
|
||||
|
@ -8242,7 +8253,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
mediaType,
|
||||
description,
|
||||
width, height,
|
||||
1); // TODO do some LOOP logic here
|
||||
loop);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue