[1078] 完善抓图
This commit is contained in:
@@ -26,6 +26,9 @@ public class JTMediaEventInfo {
|
||||
@Schema(description = "媒体数据")
|
||||
private byte[] mediaData;
|
||||
|
||||
@Schema(description = "位置信息汇报")
|
||||
private JTPositionBaseInfo positionBaseInfo;
|
||||
|
||||
|
||||
public static JTMediaEventInfo decode(ByteBuf buf) {
|
||||
JTMediaEventInfo jtMediaEventInfo = new JTMediaEventInfo();
|
||||
@@ -35,6 +38,9 @@ public class JTMediaEventInfo {
|
||||
jtMediaEventInfo.setEventCode(buf.readUnsignedByte());
|
||||
jtMediaEventInfo.setChannelId(buf.readUnsignedByte());
|
||||
|
||||
ByteBuf byteBuf = buf.readSlice(28);
|
||||
jtMediaEventInfo.setPositionBaseInfo(JTPositionBaseInfo.decode(byteBuf));
|
||||
|
||||
byte[] bytes = new byte[buf.readableBytes()];
|
||||
buf.readBytes(bytes);
|
||||
jtMediaEventInfo.setMediaData(bytes);
|
||||
|
||||
Reference in New Issue
Block a user