StreamContent.java 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. package com.genersoft.iot.vmp.vmanager.bean;
  2. import com.genersoft.iot.vmp.common.StreamInfo;
  3. import io.swagger.v3.oas.annotations.media.Schema;
  4. @Schema(description = "流信息")
  5. public class StreamContent {
  6. @Schema(description = "应用名")
  7. private String app;
  8. @Schema(description = "流ID")
  9. private String stream;
  10. @Schema(description = "IP")
  11. private String ip;
  12. @Schema(description = "HTTP-FLV流地址")
  13. private String flv;
  14. @Schema(description = "HTTPS-FLV流地址")
  15. private String https_flv;
  16. @Schema(description = "Websocket-FLV流地址")
  17. private String ws_flv;
  18. @Schema(description = "Websockets-FLV流地址")
  19. private String wss_flv;
  20. @Schema(description = "HTTP-FMP4流地址")
  21. private String fmp4;
  22. @Schema(description = "HTTPS-FMP4流地址")
  23. private String https_fmp4;
  24. @Schema(description = "Websocket-FMP4流地址")
  25. private String ws_fmp4;
  26. @Schema(description = "Websockets-FMP4流地址")
  27. private String wss_fmp4;
  28. @Schema(description = "HLS流地址")
  29. private String hls;
  30. @Schema(description = "HTTPS-HLS流地址")
  31. private String https_hls;
  32. @Schema(description = "Websocket-HLS流地址")
  33. private String ws_hls;
  34. @Schema(description = "Websockets-HLS流地址")
  35. private String wss_hls;
  36. @Schema(description = "HTTP-TS流地址")
  37. private String ts;
  38. @Schema(description = "HTTPS-TS流地址")
  39. private String https_ts;
  40. @Schema(description = "Websocket-TS流地址")
  41. private String ws_ts;
  42. @Schema(description = "Websockets-TS流地址")
  43. private String wss_ts;
  44. @Schema(description = "RTMP流地址")
  45. private String rtmp;
  46. @Schema(description = "RTMPS流地址")
  47. private String rtmps;
  48. @Schema(description = "RTSP流地址")
  49. private String rtsp;
  50. @Schema(description = "RTSPS流地址")
  51. private String rtsps;
  52. @Schema(description = "RTC流地址")
  53. private String rtc;
  54. @Schema(description = "RTCS流地址")
  55. private String rtcs;
  56. @Schema(description = "流媒体ID")
  57. private String mediaServerId;
  58. @Schema(description = "流编码信息")
  59. private Object tracks;
  60. @Schema(description = "开始时间")
  61. private String startTime;
  62. @Schema(description = "结束时间")
  63. private String endTime;
  64. private double progress;
  65. public StreamContent(StreamInfo streamInfo) {
  66. if (streamInfo == null) {
  67. return;
  68. }
  69. this.app = streamInfo.getApp();
  70. this.stream = streamInfo.getStream();
  71. if (streamInfo.getFlv() != null) {
  72. this.flv = streamInfo.getFlv().getUrl();
  73. }
  74. if (streamInfo.getHttps_flv() != null) {
  75. this.https_flv = streamInfo.getHttps_flv().getUrl();
  76. }
  77. if (streamInfo.getWs_flv() != null) {
  78. this.ws_flv = streamInfo.getWs_flv().getUrl();
  79. }
  80. if (streamInfo.getWss_flv() != null) {
  81. this.wss_flv = streamInfo.getWss_flv().getUrl();
  82. }
  83. if (streamInfo.getFmp4() != null) {
  84. this.fmp4 = streamInfo.getFmp4().getUrl();
  85. }
  86. if (streamInfo.getWs_fmp4() != null) {
  87. this.ws_fmp4 = streamInfo.getWs_fmp4().getUrl();
  88. }
  89. if (streamInfo.getWss_fmp4() != null) {
  90. this.wss_fmp4 = streamInfo.getWss_fmp4().getUrl();
  91. }
  92. if (streamInfo.getHls() != null) {
  93. this.hls = streamInfo.getHls().getUrl();
  94. }
  95. if (streamInfo.getHttps_hls() != null) {
  96. this.https_hls = streamInfo.getHttps_hls().getUrl();
  97. }
  98. if (streamInfo.getWs_hls() != null) {
  99. this.ws_hls = streamInfo.getWs_hls().getUrl();
  100. }
  101. if (streamInfo.getWss_hls() != null) {
  102. this.wss_hls = streamInfo.getWss_hls().getUrl();
  103. }
  104. if (streamInfo.getTs() != null) {
  105. this.ts = streamInfo.getTs().getUrl();
  106. }
  107. if (streamInfo.getHttps_ts() != null) {
  108. this.https_ts = streamInfo.getHttps_ts().getUrl();
  109. }
  110. if (streamInfo.getWs_ts() != null) {
  111. this.ws_ts = streamInfo.getWs_ts().getUrl();
  112. }
  113. if (streamInfo.getRtmp() != null) {
  114. this.rtmp = streamInfo.getRtmp().getUrl();
  115. }
  116. if (streamInfo.getRtmps() != null) {
  117. this.rtmps = streamInfo.getRtmps().getUrl();
  118. }
  119. if (streamInfo.getRtsp() != null) {
  120. this.rtsp = streamInfo.getRtsp().getUrl();
  121. }
  122. if (streamInfo.getRtsps() != null) {
  123. this.rtsps = streamInfo.getRtsps().getUrl();
  124. }
  125. if (streamInfo.getRtc() != null) {
  126. this.rtc = streamInfo.getRtc().getUrl();
  127. }
  128. if (streamInfo.getRtcs() != null) {
  129. this.rtcs = streamInfo.getRtcs().getUrl();
  130. }
  131. this.mediaServerId = streamInfo.getMediaServerId();
  132. this.tracks = streamInfo.getTracks();
  133. this.startTime = streamInfo.getStartTime();
  134. this.endTime = streamInfo.getEndTime();
  135. this.progress = streamInfo.getProgress();
  136. }
  137. public String getApp() {
  138. return app;
  139. }
  140. public void setApp(String app) {
  141. this.app = app;
  142. }
  143. public String getStream() {
  144. return stream;
  145. }
  146. public void setStream(String stream) {
  147. this.stream = stream;
  148. }
  149. public String getIp() {
  150. return ip;
  151. }
  152. public void setIp(String ip) {
  153. this.ip = ip;
  154. }
  155. public String getFlv() {
  156. return flv;
  157. }
  158. public void setFlv(String flv) {
  159. this.flv = flv;
  160. }
  161. public String getHttps_flv() {
  162. return https_flv;
  163. }
  164. public void setHttps_flv(String https_flv) {
  165. this.https_flv = https_flv;
  166. }
  167. public String getWs_flv() {
  168. return ws_flv;
  169. }
  170. public void setWs_flv(String ws_flv) {
  171. this.ws_flv = ws_flv;
  172. }
  173. public String getWss_flv() {
  174. return wss_flv;
  175. }
  176. public void setWss_flv(String wss_flv) {
  177. this.wss_flv = wss_flv;
  178. }
  179. public String getFmp4() {
  180. return fmp4;
  181. }
  182. public void setFmp4(String fmp4) {
  183. this.fmp4 = fmp4;
  184. }
  185. public String getHttps_fmp4() {
  186. return https_fmp4;
  187. }
  188. public void setHttps_fmp4(String https_fmp4) {
  189. this.https_fmp4 = https_fmp4;
  190. }
  191. public String getWs_fmp4() {
  192. return ws_fmp4;
  193. }
  194. public void setWs_fmp4(String ws_fmp4) {
  195. this.ws_fmp4 = ws_fmp4;
  196. }
  197. public String getWss_fmp4() {
  198. return wss_fmp4;
  199. }
  200. public void setWss_fmp4(String wss_fmp4) {
  201. this.wss_fmp4 = wss_fmp4;
  202. }
  203. public String getHls() {
  204. return hls;
  205. }
  206. public void setHls(String hls) {
  207. this.hls = hls;
  208. }
  209. public String getHttps_hls() {
  210. return https_hls;
  211. }
  212. public void setHttps_hls(String https_hls) {
  213. this.https_hls = https_hls;
  214. }
  215. public String getWs_hls() {
  216. return ws_hls;
  217. }
  218. public void setWs_hls(String ws_hls) {
  219. this.ws_hls = ws_hls;
  220. }
  221. public String getWss_hls() {
  222. return wss_hls;
  223. }
  224. public void setWss_hls(String wss_hls) {
  225. this.wss_hls = wss_hls;
  226. }
  227. public String getTs() {
  228. return ts;
  229. }
  230. public void setTs(String ts) {
  231. this.ts = ts;
  232. }
  233. public String getHttps_ts() {
  234. return https_ts;
  235. }
  236. public void setHttps_ts(String https_ts) {
  237. this.https_ts = https_ts;
  238. }
  239. public String getWs_ts() {
  240. return ws_ts;
  241. }
  242. public void setWs_ts(String ws_ts) {
  243. this.ws_ts = ws_ts;
  244. }
  245. public String getWss_ts() {
  246. return wss_ts;
  247. }
  248. public void setWss_ts(String wss_ts) {
  249. this.wss_ts = wss_ts;
  250. }
  251. public String getRtmp() {
  252. return rtmp;
  253. }
  254. public void setRtmp(String rtmp) {
  255. this.rtmp = rtmp;
  256. }
  257. public String getRtmps() {
  258. return rtmps;
  259. }
  260. public void setRtmps(String rtmps) {
  261. this.rtmps = rtmps;
  262. }
  263. public String getRtsp() {
  264. return rtsp;
  265. }
  266. public void setRtsp(String rtsp) {
  267. this.rtsp = rtsp;
  268. }
  269. public String getRtsps() {
  270. return rtsps;
  271. }
  272. public void setRtsps(String rtsps) {
  273. this.rtsps = rtsps;
  274. }
  275. public String getRtc() {
  276. return rtc;
  277. }
  278. public void setRtc(String rtc) {
  279. this.rtc = rtc;
  280. }
  281. public String getRtcs() {
  282. return rtcs;
  283. }
  284. public void setRtcs(String rtcs) {
  285. this.rtcs = rtcs;
  286. }
  287. public String getMediaServerId() {
  288. return mediaServerId;
  289. }
  290. public void setMediaServerId(String mediaServerId) {
  291. this.mediaServerId = mediaServerId;
  292. }
  293. public Object getTracks() {
  294. return tracks;
  295. }
  296. public void setTracks(Object tracks) {
  297. this.tracks = tracks;
  298. }
  299. public String getStartTime() {
  300. return startTime;
  301. }
  302. public void setStartTime(String startTime) {
  303. this.startTime = startTime;
  304. }
  305. public String getEndTime() {
  306. return endTime;
  307. }
  308. public void setEndTime(String endTime) {
  309. this.endTime = endTime;
  310. }
  311. public double getProgress() {
  312. return progress;
  313. }
  314. public void setProgress(double progress) {
  315. this.progress = progress;
  316. }
  317. }