AudioBroadcastCatch.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. package com.genersoft.iot.vmp.gb28181.bean;
  2. import com.genersoft.iot.vmp.gb28181.controller.bean.AudioBroadcastEvent;
  3. import com.genersoft.iot.vmp.media.bean.MediaServer;
  4. import gov.nist.javax.sip.message.SIPResponse;
  5. import lombok.Data;
  6. /**
  7. * 缓存语音广播的状态
  8. * @author lin
  9. */
  10. @Data
  11. public class AudioBroadcastCatch {
  12. public AudioBroadcastCatch(
  13. String deviceId,
  14. Integer channelId,
  15. MediaServer mediaServerItem,
  16. String app,
  17. String stream,
  18. AudioBroadcastEvent event,
  19. AudioBroadcastCatchStatus status,
  20. boolean isFromPlatform
  21. ) {
  22. this.deviceId = deviceId;
  23. this.channelId = channelId;
  24. this.status = status;
  25. this.event = event;
  26. this.isFromPlatform = isFromPlatform;
  27. this.app = app;
  28. this.stream = stream;
  29. this.mediaServerItem = mediaServerItem;
  30. }
  31. public AudioBroadcastCatch() {
  32. }
  33. /**
  34. * 设备编号
  35. */
  36. private String deviceId;
  37. /**
  38. * 通道编号
  39. */
  40. private Integer channelId;
  41. /**
  42. * 流媒体信息
  43. */
  44. private MediaServer mediaServerItem;
  45. /**
  46. * 关联的流APP
  47. */
  48. private String app;
  49. /**
  50. * 关联的流STREAM
  51. */
  52. private String stream;
  53. /**
  54. * 是否是级联语音喊话
  55. */
  56. private boolean isFromPlatform;
  57. /**
  58. * 语音广播状态
  59. */
  60. private AudioBroadcastCatchStatus status;
  61. /**
  62. * 请求信息
  63. */
  64. private SipTransactionInfo sipTransactionInfo;
  65. /**
  66. * 请求结果回调
  67. */
  68. private AudioBroadcastEvent event;
  69. public void setSipTransactionInfoByRequest(SIPResponse sipResponse) {
  70. this.sipTransactionInfo = new SipTransactionInfo(sipResponse);
  71. }
  72. }