AudioBroadcastCatch.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. package com.genersoft.iot.vmp.gb28181.bean;
  2. import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
  3. import com.genersoft.iot.vmp.vmanager.gb28181.play.bean.AudioBroadcastEvent;
  4. import gov.nist.javax.sip.message.SIPResponse;
  5. /**
  6. * 缓存语音广播的状态
  7. * @author lin
  8. */
  9. public class AudioBroadcastCatch {
  10. public AudioBroadcastCatch(
  11. String deviceId,
  12. String channelId,
  13. MediaServerItem mediaServerItem,
  14. String app,
  15. String stream,
  16. AudioBroadcastEvent event,
  17. AudioBroadcastCatchStatus status,
  18. boolean isFromPlatform
  19. ) {
  20. this.deviceId = deviceId;
  21. this.channelId = channelId;
  22. this.status = status;
  23. this.event = event;
  24. this.isFromPlatform = isFromPlatform;
  25. this.app = app;
  26. this.stream = stream;
  27. this.mediaServerItem = mediaServerItem;
  28. }
  29. public AudioBroadcastCatch() {
  30. }
  31. /**
  32. * 设备编号
  33. */
  34. private String deviceId;
  35. /**
  36. * 通道编号
  37. */
  38. private String channelId;
  39. /**
  40. * 流媒体信息
  41. */
  42. private MediaServerItem mediaServerItem;
  43. /**
  44. * 关联的流APP
  45. */
  46. private String app;
  47. /**
  48. * 关联的流STREAM
  49. */
  50. private String stream;
  51. /**
  52. * 是否是级联语音喊话
  53. */
  54. private boolean isFromPlatform;
  55. /**
  56. * 语音广播状态
  57. */
  58. private AudioBroadcastCatchStatus status;
  59. /**
  60. * 请求信息
  61. */
  62. private SipTransactionInfo sipTransactionInfo;
  63. /**
  64. * 请求结果回调
  65. */
  66. private AudioBroadcastEvent event;
  67. public String getDeviceId() {
  68. return deviceId;
  69. }
  70. public void setDeviceId(String deviceId) {
  71. this.deviceId = deviceId;
  72. }
  73. public String getChannelId() {
  74. return channelId;
  75. }
  76. public void setChannelId(String channelId) {
  77. this.channelId = channelId;
  78. }
  79. public AudioBroadcastCatchStatus getStatus() {
  80. return status;
  81. }
  82. public void setStatus(AudioBroadcastCatchStatus status) {
  83. this.status = status;
  84. }
  85. public SipTransactionInfo getSipTransactionInfo() {
  86. return sipTransactionInfo;
  87. }
  88. public String getApp() {
  89. return app;
  90. }
  91. public void setApp(String app) {
  92. this.app = app;
  93. }
  94. public String getStream() {
  95. return stream;
  96. }
  97. public void setStream(String stream) {
  98. this.stream = stream;
  99. }
  100. public void setSipTransactionInfo(SipTransactionInfo sipTransactionInfo) {
  101. this.sipTransactionInfo = sipTransactionInfo;
  102. }
  103. public void setSipTransactionInfoByRequset(SIPResponse response) {
  104. this.sipTransactionInfo = new SipTransactionInfo(response, false);
  105. }
  106. public MediaServerItem getMediaServerItem() {
  107. return mediaServerItem;
  108. }
  109. public void setMediaServerItem(MediaServerItem mediaServerItem) {
  110. this.mediaServerItem = mediaServerItem;
  111. }
  112. public AudioBroadcastEvent getEvent() {
  113. return event;
  114. }
  115. public void setEvent(AudioBroadcastEvent event) {
  116. this.event = event;
  117. }
  118. public String getApp() {
  119. return app;
  120. }
  121. public void setApp(String app) {
  122. this.app = app;
  123. }
  124. public String getStream() {
  125. return stream;
  126. }
  127. public void setStream(String stream) {
  128. this.stream = stream;
  129. }
  130. public boolean isFromPlatform() {
  131. return isFromPlatform;
  132. }
  133. public void setFromPlatform(boolean fromPlatform) {
  134. isFromPlatform = fromPlatform;
  135. }
  136. public MediaServerItem getMediaServerItem() {
  137. return mediaServerItem;
  138. }
  139. public void setMediaServerItem(MediaServerItem mediaServerItem) {
  140. this.mediaServerItem = mediaServerItem;
  141. }
  142. }