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;
|
if (!World.Permissions.CanEditParcel(m_host.ObjectOwner, landObject)) return;
|
||||||
|
|
||||||
bool update = false; // send a ParcelMediaUpdate (and possibly change the land's media URL)?
|
bool update = false; // send a ParcelMediaUpdate (and possibly change the land's media URL)?
|
||||||
|
byte loop = 0;
|
||||||
|
|
||||||
LandData landData = landObject.landData;
|
LandData landData = landObject.landData;
|
||||||
string url = landData.MediaURL;
|
string url = landData.MediaURL;
|
||||||
|
@ -8096,7 +8097,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ParcelMediaCommandEnum.Loop:
|
case ParcelMediaCommandEnum.Loop:
|
||||||
|
loop = 1;
|
||||||
|
commandToSend = command;
|
||||||
|
update = true; //need to send the media update packet to set looping
|
||||||
|
break;
|
||||||
|
|
||||||
case ParcelMediaCommandEnum.Play:
|
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.Pause:
|
||||||
case ParcelMediaCommandEnum.Stop:
|
case ParcelMediaCommandEnum.Stop:
|
||||||
case ParcelMediaCommandEnum.Unload:
|
case ParcelMediaCommandEnum.Unload:
|
||||||
|
@ -8230,7 +8241,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
mediaType,
|
mediaType,
|
||||||
description,
|
description,
|
||||||
width, height,
|
width, height,
|
||||||
1); // TODO do some LOOP logic here
|
loop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!presence.IsChildAgent)
|
else if (!presence.IsChildAgent)
|
||||||
|
@ -8242,7 +8253,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
mediaType,
|
mediaType,
|
||||||
description,
|
description,
|
||||||
width, height,
|
width, height,
|
||||||
1); // TODO do some LOOP logic here
|
loop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue