From 15df08964bb459d6d01ec5ef423eae094eac1c72 Mon Sep 17 00:00:00 2001 From: ‘sxh’ <1632740646@qq.com> Date: 星期四, 15 六月 2023 11:00:29 +0800 Subject: [PATCH] 新增设备主子码流选择,默认为不开启 --- src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java b/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java index a501daf..5bda636 100644 --- a/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java +++ b/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java @@ -528,4 +528,31 @@ } return instance; } + + + /*=========================璁惧涓诲瓙鐮佹祦閫昏緫START====================*/ + @Schema(description = "鏄惁涓哄瓙鐮佹祦(true-鏄紝false-涓荤爜娴�)") + private boolean subStream; + + public boolean isSubStream() { + return subStream; + } + + public void setSubStream(boolean subStream) { + this.subStream = subStream; + } + + public static String getPlayStream(String deviceId,String channelId,boolean isSubStream){ + String streamId; + if(isSubStream){ + streamId = String.format("%s_%s_%s","sub",deviceId, channelId); + }else { + streamId = String.format("%s_%s_%s","main", deviceId, channelId); + } + return streamId; + } + + /*=========================璁惧涓诲瓙鐮佹祦閫昏緫END====================*/ + + } -- Gitblit v1.8.0