SendRtpItem.java 4.8 KB

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