diff options
author | lbsa71 | 2008-07-08 14:17:59 +0000 |
---|---|---|
committer | lbsa71 | 2008-07-08 14:17:59 +0000 |
commit | b7fc172254794a23cba4cb1313c6951f55ed4b2a (patch) | |
tree | f7bed305d39b32780f7ad8c46de43d0d5a7c824d /OpenSim/Region/ClientStack | |
parent | * Changed casing of some archaic methods to conform with code standards (diff) | |
download | opensim-SC_OLD-b7fc172254794a23cba4cb1313c6951f55ed4b2a.zip opensim-SC_OLD-b7fc172254794a23cba4cb1313c6951f55ed4b2a.tar.gz opensim-SC_OLD-b7fc172254794a23cba4cb1313c6951f55ed4b2a.tar.bz2 opensim-SC_OLD-b7fc172254794a23cba4cb1313c6951f55ed4b2a.tar.xz |
* Added experimental SendParcelMediaCommand and SendParcelMediaUpdate to IClientAPI. These methods have not been tested, but feel free to start wiring them to llParcelMediaCommandList.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 7f21fc6..afae760 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -6594,5 +6594,37 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6594 | 6594 | ||
6595 | m_sequence = info.sequence; | 6595 | m_sequence = info.sequence; |
6596 | } | 6596 | } |
6597 | |||
6598 | #region Media Parcel Members | ||
6599 | |||
6600 | public void SendParcelMediaCommand(ParcelMediaCommandEnum flags, uint command, float time) | ||
6601 | { | ||
6602 | ParcelMediaCommandMessagePacket commandMessagePacket = new ParcelMediaCommandMessagePacket(); | ||
6603 | commandMessagePacket.CommandBlock.Flags = (uint) flags; | ||
6604 | commandMessagePacket.CommandBlock.Command = command; | ||
6605 | commandMessagePacket.CommandBlock.Time = time; | ||
6606 | |||
6607 | OutPacket(commandMessagePacket, ThrottleOutPacketType.Unknown); | ||
6608 | } | ||
6609 | |||
6610 | public void SendParcelMediaUpdate(string mediaUrl, LLUUID mediaTextureID, | ||
6611 | byte autoScale, string mediaType, string mediaDesc, int mediaWidth, int mediaHeight, | ||
6612 | byte mediaLoop) | ||
6613 | { | ||
6614 | ParcelMediaUpdatePacket updatePacket = new ParcelMediaUpdatePacket(); | ||
6615 | updatePacket.DataBlock.MediaURL = Helpers.StringToField(mediaUrl); | ||
6616 | updatePacket.DataBlock.MediaID = mediaTextureID; | ||
6617 | updatePacket.DataBlock.MediaAutoScale = autoScale; | ||
6618 | |||
6619 | updatePacket.DataBlockExtended.MediaType = Helpers.StringToField(mediaType); | ||
6620 | updatePacket.DataBlockExtended.MediaDesc = Helpers.StringToField(mediaDesc); | ||
6621 | updatePacket.DataBlockExtended.MediaWidth = mediaWidth; | ||
6622 | updatePacket.DataBlockExtended.MediaWidth = mediaHeight; | ||
6623 | updatePacket.DataBlockExtended.MediaLoop = mediaLoop; | ||
6624 | |||
6625 | OutPacket(updatePacket, ThrottleOutPacketType.Unknown); | ||
6626 | } | ||
6627 | |||
6628 | #endregion | ||
6597 | } | 6629 | } |
6598 | } | 6630 | } |