corrected the params types on IClientAPI.SendParcelMediaCommand. the command parameter should be set to the the ParcelMediaCommandEnum value. While flags seems to need to be set to (uint)(1<<[value of the command enum])
parent
5609292101
commit
7db2e19500
|
@ -642,7 +642,7 @@ namespace OpenSim.Framework
|
|||
|
||||
#region Parcel Methods
|
||||
|
||||
void SendParcelMediaCommand(ParcelMediaCommandEnum flags, uint command, float time);
|
||||
void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time);
|
||||
|
||||
void SendParcelMediaUpdate(string mediaUrl, LLUUID mediaTextureID,
|
||||
byte autoScale, string mediaType, string mediaDesc, int mediaWidth, int mediaHeight,
|
||||
|
|
|
@ -6597,11 +6597,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
|
||||
#region Media Parcel Members
|
||||
|
||||
public void SendParcelMediaCommand(ParcelMediaCommandEnum flags, uint command, float time)
|
||||
public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
|
||||
{
|
||||
ParcelMediaCommandMessagePacket commandMessagePacket = new ParcelMediaCommandMessagePacket();
|
||||
commandMessagePacket.CommandBlock.Flags = (uint) flags;
|
||||
commandMessagePacket.CommandBlock.Command = command;
|
||||
commandMessagePacket.CommandBlock.Command =(uint) command;
|
||||
commandMessagePacket.CommandBlock.Time = time;
|
||||
|
||||
OutPacket(commandMessagePacket, ThrottleOutPacketType.Unknown);
|
||||
|
|
|
@ -796,7 +796,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
|
|||
#endregion
|
||||
|
||||
|
||||
public void SendParcelMediaCommand(ParcelMediaCommandEnum flags, uint command, float time)
|
||||
public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -771,7 +771,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
|||
{
|
||||
}
|
||||
|
||||
public void SendParcelMediaCommand(ParcelMediaCommandEnum flags, uint command, float time)
|
||||
public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue