1078-音视频参数设置+音视频通道列表设置
This commit is contained in:
@@ -930,6 +930,22 @@ public class JTDeviceConfig {
|
||||
this.canUploadIntervalForChannel2 = canUploadIntervalForChannel2;
|
||||
}
|
||||
|
||||
public VideoParam getVideoParam() {
|
||||
return videoParam;
|
||||
}
|
||||
|
||||
public void setVideoParam(VideoParam videoParam) {
|
||||
this.videoParam = videoParam;
|
||||
}
|
||||
|
||||
public ChannelListParam getChannelListParam() {
|
||||
return channelListParam;
|
||||
}
|
||||
|
||||
public void setChannelListParam(ChannelListParam channelListParam) {
|
||||
this.channelListParam = channelListParam;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "JTDeviceConfig{" +
|
||||
|
||||
@@ -131,6 +131,11 @@ public class J0104 extends Re {
|
||||
Method methodForVideoParam = deviceConfig.getClass().getDeclaredMethod("set" + StringUtils.capitalize(field.getName()), VideoParam.class);
|
||||
methodForVideoParam.invoke(deviceConfig, videoParam);
|
||||
continue;
|
||||
case "ChannelListParam":
|
||||
ChannelListParam channelListParam = ChannelListParam.decode(buf);
|
||||
Method methodForChannelListParam = deviceConfig.getClass().getDeclaredMethod("set" + StringUtils.capitalize(field.getName()), ChannelListParam.class);
|
||||
methodForChannelListParam.invoke(deviceConfig, channelListParam);
|
||||
continue;
|
||||
default:
|
||||
System.err.println(field.getGenericType().getTypeName());
|
||||
continue;
|
||||
|
||||
@@ -89,6 +89,7 @@ public class J8103 extends Rs {
|
||||
case "CameraTimer":
|
||||
case "GnssPositioningMode":
|
||||
case "VideoParam":
|
||||
case "ChannelListParam":
|
||||
field.setAccessible(true);
|
||||
JTDeviceSubConfig subConfig = (JTDeviceSubConfig)field.get(config);
|
||||
ByteBuf bytesForIllegalDrivingPeriods = subConfig.encode();
|
||||
|
||||
Reference in New Issue
Block a user