diff --git a/iboot-tos/pom.xml b/iboot-tos/pom.xml
index 9d057836..88761193 100644
--- a/iboot-tos/pom.xml
+++ b/iboot-tos/pom.xml
@@ -11,8 +11,7 @@
pom
-
- wvp-GB28181-pro
+
iboot:tos
diff --git a/iboot-tos/wvp-GB28181-pro/README.MD b/iboot-tos/wvp-GB28181-pro/README.MD
deleted file mode 100644
index ce6d1547..00000000
--- a/iboot-tos/wvp-GB28181-pro/README.MD
+++ /dev/null
@@ -1,2 +0,0 @@
-* 同步时间[2023/12/13]
-* gb28181项目是基于[wvp-GB28181-pro]修改而来. 感谢开源作者[https://gitee.com/pan648540858/wvp-GB28181-pro]
diff --git a/iboot-tos/wvp-GB28181-pro/pom.xml b/iboot-tos/wvp-GB28181-pro/pom.xml
deleted file mode 100644
index 1e5ec4b6..00000000
--- a/iboot-tos/wvp-GB28181-pro/pom.xml
+++ /dev/null
@@ -1,146 +0,0 @@
-
-
-
- com.iteaj
- ${reversion}
- iboot-tos
-
-
- 4.0.0
- wvp-GB28181-pro
-
- gb28181项目是基于[wvp-GB28181-pro]修改而来. 感谢开源作者[https://gitee.com/pan648540858/wvp-GB28181-pro]
-
-
-
-
- org.slf4j
- log4j-over-slf4j
-
-
-
- org.springframework.boot
- spring-boot-starter-data-redis
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
- true
- org.springframework.boot
- spring-boot-configuration-processor
-
-
-
-
- org.springdoc
- springdoc-openapi-ui
- 1.6.10
-
-
-
-
- javax.validation
- validation-api
-
-
-
-
- org.springframework.boot
- spring-boot-starter-aop
-
-
-
-
- javax.sip
- jain-sip-ri
- 1.3.0-91
-
-
-
-
- org.dom4j
- dom4j
- 2.1.3
-
-
-
- com.google.guava
- guava
- 20.0
-
-
-
-
- com.alibaba.fastjson2
- fastjson2
- 2.0.17
-
-
- com.alibaba.fastjson2
- fastjson2-extension
- 2.0.17
-
-
-
-
- com.squareup.okhttp3
- okhttp
- 4.10.0
-
-
-
-
- com.squareup.okhttp3
- logging-interceptor
- 4.10.0
-
-
-
-
- io.github.rburgst
- okhttp-digest
- 2.7
-
-
-
-
-
-
-
-
-
-
-
- org.bitbucket.b_c
- jose4j
- 0.9.3
-
-
-
-
- org.mitre.dsmiley.httpproxy
- smiley-http-proxy-servlet
- 1.12.1
-
-
-
-
-
-
-
-
-
-
-
-
- com.google.guava
- guava
- 31.1-jre
-
-
-
-
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/GbsWvpAutoConfiguration.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/GbsWvpAutoConfiguration.java
deleted file mode 100644
index a27cbfac..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/GbsWvpAutoConfiguration.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.genersoft.iot.vmp;
-
-import com.genersoft.iot.vmp.conf.MediaConfig;
-import com.iteaj.framework.security.OrderFilterChainDefinition;
-import org.mybatis.spring.annotation.MapperScan;
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
-import org.springframework.boot.web.servlet.ServletComponentScan;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.core.annotation.Order;
-
-@ComponentScan({"com.genersoft.iot.vmp"})
-@ServletComponentScan("com.genersoft.iot.vmp.conf")
-@MapperScan("com.genersoft.iot.vmp.storager.dao")
-@EnableConfigurationProperties(MediaConfig.class)
-public class GbsWvpAutoConfiguration {
-
- /**
- * @return
- */
- @Bean
- @Order(value = 18)
- public OrderFilterChainDefinition gbsFilterChainDefinition() {
- return new OrderFilterChainDefinition().addAnon("/gbs/zlm/hook/**");
- }
-}
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/ApiSaveConstant.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/ApiSaveConstant.java
deleted file mode 100644
index ed1c2b9b..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/ApiSaveConstant.java
+++ /dev/null
@@ -1,198 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-/**
- * 为API重命名, 方便向数据库记录数据的时候展示
- * @author lin
- */
-public class ApiSaveConstant {
-
- public static String getVal(String key) {
- String[] keyItemArray = key.split("/");
- if (keyItemArray.length <= 1 || !"api".equals(keyItemArray[1])) {
- return null;
- }
- if (keyItemArray.length >= 4) {
- switch (keyItemArray[2]) {
- case "alarm":
- if ("delete".equals(keyItemArray[3])) {
- return "删除报警";
- }
- break;
- case "device":
- switch (keyItemArray[3]) {
- case "config":
- if (keyItemArray.length >= 5 && "basicParam".equals(keyItemArray[4])) {
- return "[设备配置] 基本配置设置命令";
- }
- break;
- case "control":
- switch (keyItemArray[4]) {
- case "teleboot":
- return "[设备控制] 远程启动";
- case "record":
- return "[设备控制] 录像控制";
- case "guard":
- return "[设备控制] 布防/撤防命令";
- case "reset_alarm":
- return "[设备控制] 报警复位";
- case "i_frame":
- return "[设备控制] 强制关键帧";
- case "home_position":
- return "[设备控制] 看守位控制";
- default:
- return "";
- }
- case "query":
- if (keyItemArray.length <= 5) {
- return null;
- }
- switch (keyItemArray[4]) {
- case "devices":
- if (keyItemArray.length < 7) {
- return null;
- }
- switch (keyItemArray[6]) {
- case "sync":
- return "[设备查询] 同步设备通道";
- case "delete":
- return "[设备查询] 移除设备";
- default:
- return "";
- }
- case "channel":
- return "[设备查询] 更新通道信息";
- case "transport":
- return "[设备查询] 修改数据流传输模式";
- default:
- return "";
- }
- default:
- return "";
- }
-
- break;
- case "gbStream":
- switch (keyItemArray[3]) {
- case "del":
- return "移除通道与国标的关联";
- case "add":
- return "添加通道与国标的关联";
- default:
- return "";
- }
- case "media":
- break;
- case "position":
- if ("subscribe".equals(keyItemArray[3])) {
- return "订阅位置信息";
- }
- break;
- case "platform":
- switch (keyItemArray[3]) {
- case "save":
- return "添加上级平台";
- case "delete":
- return "移除上级平台";
- case "update_channel_for_gb":
- return "向上级平台添加国标通道";
- case "del_channel_for_gb":
- return "从上级平台移除国标通道";
- default:
- return "";
- }
- case "platform_gb_stream":
- break;
- case "play":
- switch (keyItemArray[3]) {
- case "start":
- return "开始点播";
- case "stop":
- return "停止点播";
- case "convert":
- return "转码";
- case "convertStop":
- return "结束转码";
- case "broadcast":
- return "语音广播";
- default:
- return "";
- }
- case "download":
- switch (keyItemArray[3]) {
- case "start":
- return "开始历史媒体下载";
- case "stop":
- return "停止历史媒体下载";
- default:
- return "";
- }
- case "playback":
- switch (keyItemArray[3]) {
- case "start":
- return "开始视频回放";
- case "stop":
- return "停止视频回放";
- default:
- return "";
- }
- case "ptz":
- switch (keyItemArray[3]) {
- case "control":
- return "云台控制";
- case "front_end_command":
- return "通用前端控制命令";
- default:
- return "";
- }
- case "gb_record":
- break;
- case "onvif":
- break;
- case "server":
- if ("restart".equals(keyItemArray[3])) {
- return "重启流媒体服务";
- }
- break;
- case "proxy":
- switch (keyItemArray[3]) {
- case "save":
- return "保存代理";
- case "del":
- return "移除代理";
- case "start":
- return "启用代理";
- case "stop":
- return "停用代理";
- default:
- return "";
- }
- case "push":
- switch (keyItemArray[3]) {
- case "save_to_gb":
- return "将推流添加到国标";
- case "remove_form_gb":
- return "将推流移出到国标";
- default:
- return "";
- }
- case "user":
- switch (keyItemArray[3]) {
- case "login":
- return "登录";
- case "changePassword":
- return "修改密码";
- case "add":
- return "添加用户";
- case "delete":
- return "删除用户";
- default:
- return "";
- }
- default:
- return "";
- }
- }
- return null;
- }
-}
-
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/CivilCodePo.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/CivilCodePo.java
deleted file mode 100644
index 452c12ef..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/CivilCodePo.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-public class CivilCodePo {
-
- private String code;
-
- private String name;
-
- private String parentCode;
-
- public static CivilCodePo getInstance(String[] infoArray) {
- CivilCodePo civilCodePo = new CivilCodePo();
- civilCodePo.setCode(infoArray[0]);
- civilCodePo.setName(infoArray[1]);
- civilCodePo.setParentCode(infoArray[2]);
- return civilCodePo;
- }
-
- public String getCode() {
- return code;
- }
-
- public void setCode(String code) {
- this.code = code;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getParentCode() {
- return parentCode;
- }
-
- public void setParentCode(String parentCode) {
- this.parentCode = parentCode;
- }
-}
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/CommonCallback.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/CommonCallback.java
deleted file mode 100644
index 819fe0dd..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/CommonCallback.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-public interface CommonCallback{
- public void run(T t);
-}
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/CommonGbChannel.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/CommonGbChannel.java
deleted file mode 100644
index b289a14a..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/CommonGbChannel.java
+++ /dev/null
@@ -1,191 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-import io.swagger.v3.oas.annotations.media.Schema;
-
-public class CommonGbChannel {
-
- /**
- * 国标字段:归属
- */
- @Schema(description = "归属")
- private String owner;
-
- /**
- * 国标字段:行政区划
- */
- @Schema(description = "行政区划")
- private String civilCode;
-
- /**
- * 国标字段:安装地址
- */
- @Schema(description = "安装地址")
- private String address;
-
- /**
- * 国标字段:经度
- */
- @Schema(description = "经度")
- private Double longitude;
-
- /**
- * 国标字段:纬度
- */
- @Schema(description = "纬度")
- private Double latitude;
-
- /**
- * 国标字段:摄像机类型:
- * 1-球机;
- * 2-半球;
- * 3-固定枪机;
- * 4-遥控枪机
- */
- @Schema(description = "摄像机类型")
- private Integer ptzType;
-
- /**
- * 国标字段:摄像机位置类型扩展。
- * 1-省际检查站、
- * 2-党政机关、
- * 3-车站码头、
- * 4-中心广场、
- * 5-体育场馆、
- * 6-商业中心、
- * 7-宗教场所、
- * 8-校园周边、
- * 9-治安复杂区域、
- * 10-交通干线
- */
- @Schema(description = "摄像机位置类型扩展")
- private Integer positionType;
-
- /**
- * 国标字段:安装位置室外、室内属性
- * 1-室外、
- * 2-室内
- */
- @Schema(description = "安装位置室外、室内属性")
- private Integer roomType;
-
- /**
- * 国标字段:用途
- * 1-治安、
- * 2-交通、
- * 3-重点、
- */
- @Schema(description = "用途")
- private Integer useType;
-
- /**
- * 国标字段:补光属性
- * 1-无补光、
- * 2-红外补光、
- * 3-白光补光
- */
- @Schema(description = "补光属性")
- private Integer supplyLightType;
-
- /**
- * 摄像机监视方位属性。
- * 1-东、
- * 2-西、
- * 3-南、
- * 4-北、
- * 5-东南、
- * 6-东北、
- * 7-西南、
- * 8-西北
- *
- */
- @Schema(description = "方位")
- private Integer directionType;
-
- public String getOwner() {
- return owner;
- }
-
- public void setOwner(String owner) {
- this.owner = owner;
- }
-
- public String getCivilCode() {
- return civilCode;
- }
-
- public void setCivilCode(String civilCode) {
- this.civilCode = civilCode;
- }
-
- public String getAddress() {
- return address;
- }
-
- public void setAddress(String address) {
- this.address = address;
- }
-
- public Double getLongitude() {
- return longitude;
- }
-
- public void setLongitude(Double longitude) {
- this.longitude = longitude;
- }
-
- public Double getLatitude() {
- return latitude;
- }
-
- public void setLatitude(Double latitude) {
- this.latitude = latitude;
- }
-
- public Integer getPtzType() {
- return ptzType;
- }
-
- public void setPtzType(Integer ptzType) {
- this.ptzType = ptzType;
- }
-
- public Integer getPositionType() {
- return positionType;
- }
-
- public void setPositionType(Integer positionType) {
- this.positionType = positionType;
- }
-
- public Integer getRoomType() {
- return roomType;
- }
-
- public void setRoomType(Integer roomType) {
- this.roomType = roomType;
- }
-
- public Integer getUseType() {
- return useType;
- }
-
- public void setUseType(Integer useType) {
- this.useType = useType;
- }
-
- public Integer getSupplyLightType() {
- return supplyLightType;
- }
-
- public void setSupplyLightType(Integer supplyLightType) {
- this.supplyLightType = supplyLightType;
- }
-
- public Integer getDirectionType() {
- return directionType;
- }
-
- public void setDirectionType(Integer directionType) {
- this.directionType = directionType;
- }
-}
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/GeneralCallback.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/GeneralCallback.java
deleted file mode 100644
index df07fac5..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/GeneralCallback.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-public interface GeneralCallback{
- void run(int code, String msg, T data);
-}
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/InviteInfo.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/InviteInfo.java
deleted file mode 100644
index dabdb4f0..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/InviteInfo.java
+++ /dev/null
@@ -1,144 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-import com.genersoft.iot.vmp.service.bean.SSRCInfo;
-import io.swagger.v3.oas.annotations.media.Schema;
-
-/**
- * 记录每次发送invite消息的状态
- */
-public class InviteInfo {
-
- private String deviceId;
-
- private String channelId;
-
- private String stream;
-
- private SSRCInfo ssrcInfo;
-
- private String receiveIp;
-
- private Integer receivePort;
-
- private String streamMode;
-
- private InviteSessionType type;
-
- private InviteSessionStatus status;
-
- private StreamInfo streamInfo;
-
-
- public static InviteInfo getInviteInfo(String deviceId, String channelId, String stream, SSRCInfo ssrcInfo,
- String receiveIp, Integer receivePort, String streamMode,
- InviteSessionType type, InviteSessionStatus status) {
- InviteInfo inviteInfo = new InviteInfo();
- inviteInfo.setDeviceId(deviceId);
- inviteInfo.setChannelId(channelId);
- inviteInfo.setStream(stream);
- inviteInfo.setSsrcInfo(ssrcInfo);
- inviteInfo.setReceiveIp(receiveIp);
- inviteInfo.setReceivePort(receivePort);
- inviteInfo.setStreamMode(streamMode);
- inviteInfo.setType(type);
- inviteInfo.setStatus(status);
- return inviteInfo;
- }
-
- public String getDeviceId() {
- return deviceId;
- }
-
- public void setDeviceId(String deviceId) {
- this.deviceId = deviceId;
- }
-
- public String getChannelId() {
- return channelId;
- }
-
- public void setChannelId(String channelId) {
- this.channelId = channelId;
- }
-
- public InviteSessionType getType() {
- return type;
- }
-
- public void setType(InviteSessionType type) {
- this.type = type;
- }
-
- public InviteSessionStatus getStatus() {
- return status;
- }
-
- public void setStatus(InviteSessionStatus status) {
- this.status = status;
- }
-
- public StreamInfo getStreamInfo() {
- return streamInfo;
- }
-
- public void setStreamInfo(StreamInfo streamInfo) {
- this.streamInfo = streamInfo;
- }
-
- public String getStream() {
- return stream;
- }
-
- public void setStream(String stream) {
- this.stream = stream;
- }
-
- public SSRCInfo getSsrcInfo() {
- return ssrcInfo;
- }
-
- public void setSsrcInfo(SSRCInfo ssrcInfo) {
- this.ssrcInfo = ssrcInfo;
- }
-
- public String getReceiveIp() {
- return receiveIp;
- }
-
- public void setReceiveIp(String receiveIp) {
- this.receiveIp = receiveIp;
- }
-
- public Integer getReceivePort() {
- return receivePort;
- }
-
- public void setReceivePort(Integer receivePort) {
- this.receivePort = receivePort;
- }
-
- public String getStreamMode() {
- return streamMode;
- }
-
- public void setStreamMode(String streamMode) {
- this.streamMode = streamMode;
- }
-
-
- /*=========================设备主子码流逻辑START====================*/
- @Schema(description = "是否为子码流(true-是,false-主码流)")
- private boolean subStream;
-
- public boolean isSubStream() {
- return subStream;
- }
-
- public void setSubStream(boolean subStream) {
- this.subStream = subStream;
- }
-
-
-
-
-}
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/InviteSessionStatus.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/InviteSessionStatus.java
deleted file mode 100644
index 04cc7c91..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/InviteSessionStatus.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-/**
- * 标识invite消息发出后的各个状态,
- * 收到ok钱停止invite发送cancel,
- * 收到200ok后发送BYE停止invite
- */
-public enum InviteSessionStatus {
- ready,
- ok,
-}
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/InviteSessionType.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/InviteSessionType.java
deleted file mode 100644
index 5a6eb85b..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/InviteSessionType.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-public enum InviteSessionType {
- PLAY,
- PLAYBACK,
- DOWNLOAD
-}
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java
deleted file mode 100644
index 70718c7a..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/StreamInfo.java
+++ /dev/null
@@ -1,609 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-import io.swagger.v3.oas.annotations.media.Schema;
-
-import java.io.Serializable;
-import java.util.Objects;
-
-@Schema(description = "流信息")
-public class StreamInfo implements Serializable, Cloneable{
-
- @Schema(description = "应用名")
- private String app;
- @Schema(description = "流ID")
- private String stream;
- @Schema(description = "设备编号")
- private String deviceID;
- @Schema(description = "通道编号")
- private String channelId;
-
- @Schema(description = "IP")
- private String ip;
-
- @Schema(description = "HTTP-FLV流地址")
- private StreamURL flv;
-
- @Schema(description = "HTTPS-FLV流地址")
- private StreamURL https_flv;
- @Schema(description = "Websocket-FLV流地址")
- private StreamURL ws_flv;
- @Schema(description = "Websockets-FLV流地址")
- private StreamURL wss_flv;
- @Schema(description = "HTTP-FMP4流地址")
- private StreamURL fmp4;
- @Schema(description = "HTTPS-FMP4流地址")
- private StreamURL https_fmp4;
- @Schema(description = "Websocket-FMP4流地址")
- private StreamURL ws_fmp4;
- @Schema(description = "Websockets-FMP4流地址")
- private StreamURL wss_fmp4;
- @Schema(description = "HLS流地址")
- private StreamURL hls;
- @Schema(description = "HTTPS-HLS流地址")
- private StreamURL https_hls;
- @Schema(description = "Websocket-HLS流地址")
- private StreamURL ws_hls;
- @Schema(description = "Websockets-HLS流地址")
- private StreamURL wss_hls;
- @Schema(description = "HTTP-TS流地址")
- private StreamURL ts;
- @Schema(description = "HTTPS-TS流地址")
- private StreamURL https_ts;
- @Schema(description = "Websocket-TS流地址")
- private StreamURL ws_ts;
- @Schema(description = "Websockets-TS流地址")
- private StreamURL wss_ts;
- @Schema(description = "RTMP流地址")
- private StreamURL rtmp;
- @Schema(description = "RTMPS流地址")
- private StreamURL rtmps;
- @Schema(description = "RTSP流地址")
- private StreamURL rtsp;
- @Schema(description = "RTSPS流地址")
- private StreamURL rtsps;
- @Schema(description = "RTC流地址")
- private StreamURL rtc;
-
- @Schema(description = "RTCS流地址")
- private StreamURL rtcs;
- @Schema(description = "流媒体ID")
- private String mediaServerId;
- @Schema(description = "流编码信息")
- private Object tracks;
- @Schema(description = "开始时间")
- private String startTime;
- @Schema(description = "结束时间")
- private String endTime;
- @Schema(description = "进度(录像下载使用)")
- private double progress;
-
- @Schema(description = "是否暂停(录像回放使用)")
- private boolean pause;
-
- public void setFlv(StreamURL flv) {
- this.flv = flv;
- }
-
- public void setHttps_flv(StreamURL https_flv) {
- this.https_flv = https_flv;
- }
-
- public void setWs_flv(StreamURL ws_flv) {
- this.ws_flv = ws_flv;
- }
-
- public void setWss_flv(StreamURL wss_flv) {
- this.wss_flv = wss_flv;
- }
-
- public void setFmp4(StreamURL fmp4) {
- this.fmp4 = fmp4;
- }
-
- public void setHttps_fmp4(StreamURL https_fmp4) {
- this.https_fmp4 = https_fmp4;
- }
-
- public void setWs_fmp4(StreamURL ws_fmp4) {
- this.ws_fmp4 = ws_fmp4;
- }
-
- public void setWss_fmp4(StreamURL wss_fmp4) {
- this.wss_fmp4 = wss_fmp4;
- }
-
- public void setHls(StreamURL hls) {
- this.hls = hls;
- }
-
- public void setHttps_hls(StreamURL https_hls) {
- this.https_hls = https_hls;
- }
-
- public void setWs_hls(StreamURL ws_hls) {
- this.ws_hls = ws_hls;
- }
-
- public void setWss_hls(StreamURL wss_hls) {
- this.wss_hls = wss_hls;
- }
-
- public void setTs(StreamURL ts) {
- this.ts = ts;
- }
-
- public void setHttps_ts(StreamURL https_ts) {
- this.https_ts = https_ts;
- }
-
- public void setWs_ts(StreamURL ws_ts) {
- this.ws_ts = ws_ts;
- }
-
- public void setWss_ts(StreamURL wss_ts) {
- this.wss_ts = wss_ts;
- }
-
- public void setRtmp(StreamURL rtmp) {
- this.rtmp = rtmp;
- }
-
- public void setRtmps(StreamURL rtmps) {
- this.rtmps = rtmps;
- }
-
- public void setRtsp(StreamURL rtsp) {
- this.rtsp = rtsp;
- }
-
- public void setRtsps(StreamURL rtsps) {
- this.rtsps = rtsps;
- }
-
- public void setRtc(StreamURL rtc) {
- this.rtc = rtc;
- }
-
- public void setRtcs(StreamURL rtcs) {
- this.rtcs = rtcs;
- }
-
- public void setRtmp(String host, int port, int sslPort, String app, String stream, String callIdParam) {
- String file = String.format("%s/%s%s", app, stream, callIdParam);
- if (port > 0) {
- this.rtmp = new StreamURL("rtmp", host, port, file);
- }
- if (sslPort > 0) {
- this.rtmps = new StreamURL("rtmps", host, sslPort, file);
- }
- }
-
- public void setRtsp(String host, int port, int sslPort, String app, String stream, String callIdParam) {
- String file = String.format("%s/%s%s", app, stream, callIdParam);
- if (port > 0) {
- this.rtsp = new StreamURL("rtsp", host, port, file);
- }
- if (sslPort > 0) {
- this.rtsps = new StreamURL("rtsps", host, sslPort, file);
- }
- }
-
- public void setFlv(String host, int port, int sslPort, String app, String stream, String callIdParam) {
- String file = String.format("%s/%s.live.flv%s", app, stream, callIdParam);
- if (port > 0) {
- this.flv = new StreamURL("http", host, port, file);
- }
- this.ws_flv = new StreamURL("ws", host, port, file);
- if (sslPort > 0) {
- this.https_flv = new StreamURL("https", host, sslPort, file);
- this.wss_flv = new StreamURL("wss", host, sslPort, file);
- }
- }
-
- public void setFmp4(String host, int port, int sslPort, String app, String stream, String callIdParam) {
- String file = String.format("%s/%s.live.mp4%s", app, stream, callIdParam);
- if (port > 0) {
- this.fmp4 = new StreamURL("http", host, port, file);
- this.ws_fmp4 = new StreamURL("ws", host, port, file);
- }
- if (sslPort > 0) {
- this.https_fmp4 = new StreamURL("https", host, sslPort, file);
- this.wss_fmp4 = new StreamURL("wss", host, sslPort, file);
- }
- }
-
- public void setHls(String host, int port, int sslPort, String app, String stream, String callIdParam) {
- String file = String.format("%s/%s/hls.m3u8%s", app, stream, callIdParam);
- if (port > 0) {
- this.hls = new StreamURL("http", host, port, file);
- this.ws_hls = new StreamURL("ws", host, port, file);
- }
- if (sslPort > 0) {
- this.https_hls = new StreamURL("https", host, sslPort, file);
- this.wss_hls = new StreamURL("wss", host, sslPort, file);
- }
- }
-
- public void setTs(String host, int port, int sslPort, String app, String stream, String callIdParam) {
- String file = String.format("%s/%s.live.ts%s", app, stream, callIdParam);
-
- if (port > 0) {
- this.ts = new StreamURL("http", host, port, file);
- this.ws_ts = new StreamURL("ws", host, port, file);
- }
- if (sslPort > 0) {
- this.https_ts = new StreamURL("https", host, sslPort, file);
- this.wss_ts = new StreamURL("wss", host, sslPort, file);
- }
- }
-
- public void setRtc(String host, int port, int sslPort, String app, String stream, String callIdParam) {
- if (callIdParam != null) {
- callIdParam = Objects.equals(callIdParam, "") ? callIdParam : callIdParam.replace("?", "&");
- }
- String file = String.format("index/api/webrtc?app=%s&stream=%s&type=play%s", app, stream, callIdParam);
- if (port > 0) {
- this.rtc = new StreamURL("http", host, port, file);
- }
- if (sslPort > 0) {
- this.rtcs = new StreamURL("https", host, sslPort, file);
- }
- }
-
- public void channgeStreamIp(String localAddr) {
- if (this.flv != null) {
- this.flv.setHost(localAddr);
- }
- if (this.ws_flv != null ){
- this.ws_flv.setHost(localAddr);
- }
- if (this.hls != null ) {
- this.hls.setHost(localAddr);
- }
- if (this.ws_hls != null ) {
- this.ws_hls.setHost(localAddr);
- }
- if (this.ts != null ) {
- this.ts.setHost(localAddr);
- }
- if (this.ws_ts != null ) {
- this.ws_ts.setHost(localAddr);
- }
- if (this.fmp4 != null ) {
- this.fmp4.setHost(localAddr);
- }
- if (this.ws_fmp4 != null ) {
- this.ws_fmp4.setHost(localAddr);
- }
- if (this.rtc != null ) {
- this.rtc.setHost(localAddr);
- }
- if (this.https_flv != null) {
- this.https_flv.setHost(localAddr);
- }
- if (this.wss_flv != null) {
- this.wss_flv.setHost(localAddr);
- }
- if (this.https_hls != null) {
- this.https_hls.setHost(localAddr);
- }
- if (this.wss_hls != null) {
- this.wss_hls.setHost(localAddr);
- }
- if (this.wss_ts != null) {
- this.wss_ts.setHost(localAddr);
- }
- if (this.https_fmp4 != null) {
- this.https_fmp4.setHost(localAddr);
- }
- if (this.wss_fmp4 != null) {
- this.wss_fmp4.setHost(localAddr);
- }
- if (this.rtcs != null) {
- this.rtcs.setHost(localAddr);
- }
- if (this.rtsp != null) {
- this.rtsp.setHost(localAddr);
- }
- if (this.rtsps != null) {
- this.rtsps.setHost(localAddr);
- }
- if (this.rtmp != null) {
- this.rtmp.setHost(localAddr);
- }
- if (this.rtmps != null) {
- this.rtmps.setHost(localAddr);
- }
- }
-
-
- public static class TransactionInfo{
- public String callId;
- public String localTag;
- public String remoteTag;
- public String branch;
- }
-
- private TransactionInfo transactionInfo;
-
- public String getApp() {
- return app;
- }
-
- public void setApp(String app) {
- this.app = app;
- }
-
- public String getDeviceID() {
- return deviceID;
- }
-
- public void setDeviceID(String deviceID) {
- this.deviceID = deviceID;
- }
-
- public String getChannelId() {
- return channelId;
- }
-
- public void setChannelId(String channelId) {
- this.channelId = channelId;
- }
-
- public String getStream() {
- return stream;
- }
-
- public void setStream(String stream) {
- this.stream = stream;
- }
-
- public String getIp() {
- return ip;
- }
-
- public void setIp(String ip) {
- this.ip = ip;
- }
-
- public StreamURL getFlv() {
- return flv;
- }
-
- public StreamURL getHttps_flv() {
- return https_flv;
- }
-
- public StreamURL getWs_flv() {
- return ws_flv;
- }
-
-
- public StreamURL getWss_flv() {
- return wss_flv;
- }
-
- public StreamURL getFmp4() {
- return fmp4;
- }
-
-
-
- public StreamURL getHttps_fmp4() {
- return https_fmp4;
- }
-
- public StreamURL getWs_fmp4() {
- return ws_fmp4;
- }
-
- public StreamURL getWss_fmp4() {
- return wss_fmp4;
- }
-
- public StreamURL getHls() {
- return hls;
- }
-
-
- public StreamURL getHttps_hls() {
- return https_hls;
- }
-
- public StreamURL getWs_hls() {
- return ws_hls;
- }
-
- public StreamURL getWss_hls() {
- return wss_hls;
- }
-
- public StreamURL getTs() {
- return ts;
- }
-
-
- public StreamURL getHttps_ts() {
- return https_ts;
- }
-
-
- public StreamURL getWs_ts() {
- return ws_ts;
- }
-
-
- public StreamURL getWss_ts() {
- return wss_ts;
- }
-
-
- public StreamURL getRtmp() {
- return rtmp;
- }
-
- public StreamURL getRtmps() {
- return rtmps;
- }
-
- public StreamURL getRtsp() {
- return rtsp;
- }
-
- public StreamURL getRtsps() {
- return rtsps;
- }
-
- public StreamURL getRtc() {
- return rtc;
- }
-
- public StreamURL getRtcs() {
- return rtcs;
- }
-
- public String getMediaServerId() {
- return mediaServerId;
- }
-
- public void setMediaServerId(String mediaServerId) {
- this.mediaServerId = mediaServerId;
- }
-
- public Object getTracks() {
- return tracks;
- }
-
- public void setTracks(Object tracks) {
- this.tracks = tracks;
- }
-
- public String getStartTime() {
- return startTime;
- }
-
- public void setStartTime(String startTime) {
- this.startTime = startTime;
- }
-
- public String getEndTime() {
- return endTime;
- }
-
- public void setEndTime(String endTime) {
- this.endTime = endTime;
- }
-
- public double getProgress() {
- return progress;
- }
-
- public void setProgress(double progress) {
- this.progress = progress;
- }
-
- public boolean isPause() {
- return pause;
- }
-
- public void setPause(boolean pause) {
- this.pause = pause;
- }
-
- public TransactionInfo getTransactionInfo() {
- return transactionInfo;
- }
-
- public void setTransactionInfo(TransactionInfo transactionInfo) {
- this.transactionInfo = transactionInfo;
- }
-
- @Override
- public StreamInfo clone() {
- StreamInfo instance = null;
- try{
- instance = (StreamInfo)super.clone();
- if (this.flv != null) {
- instance.flv=this.flv.clone();
- }
- if (this.ws_flv != null ){
- instance.ws_flv= this.ws_flv.clone();
- }
- if (this.hls != null ) {
- instance.hls= this.hls.clone();
- }
- if (this.ws_hls != null ) {
- instance.ws_hls= this.ws_hls.clone();
- }
- if (this.ts != null ) {
- instance.ts= this.ts.clone();
- }
- if (this.ws_ts != null ) {
- instance.ws_ts= this.ws_ts.clone();
- }
- if (this.fmp4 != null ) {
- instance.fmp4= this.fmp4.clone();
- }
- if (this.ws_fmp4 != null ) {
- instance.ws_fmp4= this.ws_fmp4.clone();
- }
- if (this.rtc != null ) {
- instance.rtc= this.rtc.clone();
- }
- if (this.https_flv != null) {
- instance.https_flv= this.https_flv.clone();
- }
- if (this.wss_flv != null) {
- instance.wss_flv= this.wss_flv.clone();
- }
- if (this.https_hls != null) {
- instance.https_hls= this.https_hls.clone();
- }
- if (this.wss_hls != null) {
- instance.wss_hls= this.wss_hls.clone();
- }
- if (this.wss_ts != null) {
- instance.wss_ts= this.wss_ts.clone();
- }
- if (this.https_fmp4 != null) {
- instance.https_fmp4= this.https_fmp4.clone();
- }
- if (this.wss_fmp4 != null) {
- instance.wss_fmp4= this.wss_fmp4.clone();
- }
- if (this.rtcs != null) {
- instance.rtcs= this.rtcs.clone();
- }
- if (this.rtsp != null) {
- instance.rtsp= this.rtsp.clone();
- }
- if (this.rtsps != null) {
- instance.rtsps= this.rtsps.clone();
- }
- if (this.rtmp != null) {
- instance.rtmp= this.rtmp.clone();
- }
- if (this.rtmps != null) {
- instance.rtmps= this.rtmps.clone();
- }
- }catch(CloneNotSupportedException e) {
- e.printStackTrace();
- }
- return instance;
- }
-
-
- /*=========================设备主子码流逻辑START====================*/
- @Schema(description = "是否为子码流(true-是,false-主码流)")
- private boolean subStream;
-
- public boolean isSubStream() {
- return subStream;
- }
-
- public void setSubStream(boolean subStream) {
- this.subStream = subStream;
- }
-
-
-}
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/StreamURL.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/StreamURL.java
deleted file mode 100644
index 40bd7e25..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/StreamURL.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-import io.swagger.v3.oas.annotations.media.Schema;
-
-import java.io.Serializable;
-
-
-@Schema(description = "流地址信息")
-public class StreamURL implements Serializable,Cloneable {
-
- @Schema(description = "协议")
- private String protocol;
-
- @Schema(description = "主机地址")
- private String host;
-
- @Schema(description = "端口")
- private int port = -1;
-
- @Schema(description = "定位位置")
- private String file;
-
- @Schema(description = "拼接后的地址")
- private String url;
-
- public StreamURL() {
- }
-
- public StreamURL(String protocol, String host, int port, String file) {
- this.protocol = protocol;
- this.host = host;
- this.port = port;
- this.file = file;
- }
-
- public String getProtocol() {
- return protocol;
- }
-
- public void setProtocol(String protocol) {
- this.protocol = protocol;
- }
-
- public String getHost() {
- return host;
- }
-
- public void setHost(String host) {
- this.host = host;
- }
-
- public int getPort() {
- return port;
- }
-
- public void setPort(int port) {
- this.port = port;
- }
-
- public String getFile() {
- return file;
- }
-
- public void setFile(String file) {
- this.file = file;
- }
-
- public String getUrl() {
- return this.toString();
- }
-
- @Override
- public String toString() {
- if (protocol != null && host != null && port != -1 ) {
- return String.format("%s://%s:%s/%s", protocol, host, port, file);
- }else {
- return null;
- }
- }
- @Override
- public StreamURL clone() throws CloneNotSupportedException {
- return (StreamURL) super.clone();
- }
-}
diff --git a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/SystemAllInfo.java b/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/SystemAllInfo.java
deleted file mode 100644
index 48485da8..00000000
--- a/iboot-tos/wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/common/SystemAllInfo.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.genersoft.iot.vmp.common;
-
-import java.util.List;
-
-public class SystemAllInfo {
-
- private List