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])

0.6.0-stable
MW 2008-07-09 11:01:26 +00:00
parent 5609292101
commit 7db2e19500
4 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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);

View File

@ -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)
{
}

View File

@ -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)
{
}