SendRtpItem.java 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. package com.genersoft.iot.vmp.gb28181.bean;
  2. public class SendRtpItem {
  3. /**
  4. * 推流ip
  5. */
  6. private String ip;
  7. /**
  8. * 推流端口
  9. */
  10. private int port;
  11. /**
  12. * 推流标识
  13. */
  14. private String ssrc;
  15. /**
  16. * 平台id
  17. */
  18. private String platformId;
  19. /**
  20. * 对应设备id
  21. */
  22. private String deviceId;
  23. /**
  24. * 直播流的应用名
  25. */
  26. private String app;
  27. /**
  28. * 通道id
  29. */
  30. private String channelId;
  31. /**
  32. * 推流状态
  33. * 0 等待设备推流上来
  34. * 1 等待上级平台回复ack
  35. * 2 推流中
  36. */
  37. private int status = 0;
  38. /**
  39. * 设备推流的streamId
  40. */
  41. private String stream;
  42. /**
  43. * 是否为tcp
  44. */
  45. private boolean tcp;
  46. /**
  47. * 是否为tcp主动模式
  48. */
  49. private boolean tcpActive;
  50. /**
  51. * 自己推流使用的端口
  52. */
  53. private int localPort;
  54. /**
  55. * 使用的流媒体
  56. */
  57. private String mediaServerId;
  58. /**
  59. * 使用的服务的ID
  60. */
  61. private String serverId;
  62. /**
  63. * invite 的 callId
  64. */
  65. private String CallId;
  66. /**
  67. * invite 的 fromTag
  68. */
  69. private String fromTag;
  70. /**
  71. * invite 的 toTag
  72. */
  73. private String toTag;
  74. /**
  75. * 发送时,rtp的pt(uint8_t),不传时默认为96
  76. */
  77. private int pt = 96;
  78. /**
  79. * 发送时,rtp的负载类型。为true时,负载为ps;为false时,为es;
  80. */
  81. private boolean usePs = true;
  82. /**
  83. * 当usePs 为false时,有效。为1时,发送音频;为0时,发送视频;不传时默认为0
  84. */
  85. private boolean onlyAudio = false;
  86. /**
  87. * 是否开启rtcp保活
  88. */
  89. private boolean rtcp = false;
  90. /**
  91. * 播放类型
  92. */
  93. private InviteStreamType playType;
  94. /**
  95. * 发流的同时收流
  96. */
  97. private String receiveStream;
  98. public String getIp() {
  99. return ip;
  100. }
  101. public void setIp(String ip) {
  102. this.ip = ip;
  103. }
  104. public int getPort() {
  105. return port;
  106. }
  107. public void setPort(int port) {
  108. this.port = port;
  109. }
  110. public String getSsrc() {
  111. return ssrc;
  112. }
  113. public void setSsrc(String ssrc) {
  114. this.ssrc = ssrc;
  115. }
  116. public String getPlatformId() {
  117. return platformId;
  118. }
  119. public void setPlatformId(String platformId) {
  120. this.platformId = platformId;
  121. }
  122. public String getDeviceId() {
  123. return deviceId;
  124. }
  125. public void setDeviceId(String deviceId) {
  126. this.deviceId = deviceId;
  127. }
  128. public String getChannelId() {
  129. return channelId;
  130. }
  131. public void setChannelId(String channelId) {
  132. this.channelId = channelId;
  133. }
  134. public int getStatus() {
  135. return status;
  136. }
  137. public void setStatus(int status) {
  138. this.status = status;
  139. }
  140. public String getApp() {
  141. return app;
  142. }
  143. public void setApp(String app) {
  144. this.app = app;
  145. }
  146. public String getStream() {
  147. return stream;
  148. }
  149. public void setStream(String stream) {
  150. this.stream = stream;
  151. }
  152. public boolean isTcp() {
  153. return tcp;
  154. }
  155. public void setTcp(boolean tcp) {
  156. this.tcp = tcp;
  157. }
  158. public int getLocalPort() {
  159. return localPort;
  160. }
  161. public void setLocalPort(int localPort) {
  162. this.localPort = localPort;
  163. }
  164. public boolean isTcpActive() {
  165. return tcpActive;
  166. }
  167. public void setTcpActive(boolean tcpActive) {
  168. this.tcpActive = tcpActive;
  169. }
  170. public String getMediaServerId() {
  171. return mediaServerId;
  172. }
  173. public void setMediaServerId(String mediaServerId) {
  174. this.mediaServerId = mediaServerId;
  175. }
  176. public String getCallId() {
  177. return CallId;
  178. }
  179. public void setCallId(String callId) {
  180. CallId = callId;
  181. }
  182. public InviteStreamType getPlayType() {
  183. return playType;
  184. }
  185. public void setPlayType(InviteStreamType playType) {
  186. this.playType = playType;
  187. }
  188. public int getPt() {
  189. return pt;
  190. }
  191. public void setPt(int pt) {
  192. this.pt = pt;
  193. }
  194. public boolean isUsePs() {
  195. return usePs;
  196. }
  197. public void setUsePs(boolean usePs) {
  198. this.usePs = usePs;
  199. }
  200. public boolean isOnlyAudio() {
  201. return onlyAudio;
  202. }
  203. public void setOnlyAudio(boolean onlyAudio) {
  204. this.onlyAudio = onlyAudio;
  205. }
  206. public String getServerId() {
  207. return serverId;
  208. }
  209. public void setServerId(String serverId) {
  210. this.serverId = serverId;
  211. }
  212. public String getFromTag() {
  213. return fromTag;
  214. }
  215. public void setFromTag(String fromTag) {
  216. this.fromTag = fromTag;
  217. }
  218. public String getToTag() {
  219. return toTag;
  220. }
  221. public void setToTag(String toTag) {
  222. this.toTag = toTag;
  223. }
  224. public boolean isRtcp() {
  225. return rtcp;
  226. }
  227. public void setRtcp(boolean rtcp) {
  228. this.rtcp = rtcp;
  229. }
  230. public String getReceiveStream() {
  231. return receiveStream;
  232. }
  233. public void setReceiveStream(String receiveStream) {
  234. this.receiveStream = receiveStream;
  235. }
  236. @Override
  237. public String toString() {
  238. return "SendRtpItem{" +
  239. "ip='" + ip + '\'' +
  240. ", port=" + port +
  241. ", ssrc='" + ssrc + '\'' +
  242. ", platformId='" + platformId + '\'' +
  243. ", deviceId='" + deviceId + '\'' +
  244. ", app='" + app + '\'' +
  245. ", channelId='" + channelId + '\'' +
  246. ", status=" + status +
  247. ", stream='" + stream + '\'' +
  248. ", tcp=" + tcp +
  249. ", tcpActive=" + tcpActive +
  250. ", localPort=" + localPort +
  251. ", mediaServerId='" + mediaServerId + '\'' +
  252. ", serverId='" + serverId + '\'' +
  253. ", CallId='" + CallId + '\'' +
  254. ", fromTag='" + fromTag + '\'' +
  255. ", toTag='" + toTag + '\'' +
  256. ", pt=" + pt +
  257. ", usePs=" + usePs +
  258. ", onlyAudio=" + onlyAudio +
  259. ", rtcp=" + rtcp +
  260. ", playType=" + playType +
  261. ", receiveStream='" + receiveStream + '\'' +
  262. '}';
  263. }
  264. }