1078-音视频参数设置+音视频通道列表设置

This commit is contained in:
648540858
2024-05-21 23:58:23 +08:00
parent 82ab524fc4
commit 9817bf3fb7
3 changed files with 22 additions and 0 deletions

View File

@@ -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{" +

View File

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

View File

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