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