| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- package com.genersoft.iot.vmp.gb28181.bean;
- import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
- import com.genersoft.iot.vmp.vmanager.gb28181.play.bean.AudioBroadcastEvent;
- import gov.nist.javax.sip.message.SIPResponse;
- /**
- * 缓存语音广播的状态
- * @author lin
- */
- public class AudioBroadcastCatch {
- public AudioBroadcastCatch(
- String deviceId,
- String channelId,
- MediaServerItem mediaServerItem,
- String app,
- String stream,
- AudioBroadcastEvent event,
- AudioBroadcastCatchStatus status,
- boolean isFromPlatform
- ) {
- this.deviceId = deviceId;
- this.channelId = channelId;
- this.status = status;
- this.event = event;
- this.isFromPlatform = isFromPlatform;
- this.app = app;
- this.stream = stream;
- this.mediaServerItem = mediaServerItem;
- }
- public AudioBroadcastCatch() {
- }
- /**
- * 设备编号
- */
- private String deviceId;
- /**
- * 通道编号
- */
- private String channelId;
- /**
- * 流媒体信息
- */
- private MediaServerItem mediaServerItem;
- /**
- * 关联的流APP
- */
- private String app;
- /**
- * 关联的流STREAM
- */
- private String stream;
- /**
- * 是否是级联语音喊话
- */
- private boolean isFromPlatform;
- /**
- * 语音广播状态
- */
- private AudioBroadcastCatchStatus status;
- /**
- * 请求信息
- */
- private SipTransactionInfo sipTransactionInfo;
- /**
- * 请求结果回调
- */
- private AudioBroadcastEvent event;
- public String getDeviceId() {
- return deviceId;
- }
- public void setDeviceId(String deviceId) {
- this.deviceId = deviceId;
- }
- public String getChannelId() {
- return channelId;
- }
- public void setChannelId(String channelId) {
- this.channelId = channelId;
- }
- public AudioBroadcastCatchStatus getStatus() {
- return status;
- }
- public void setStatus(AudioBroadcastCatchStatus status) {
- this.status = status;
- }
- public SipTransactionInfo getSipTransactionInfo() {
- return sipTransactionInfo;
- }
- public String getApp() {
- return app;
- }
- public void setApp(String app) {
- this.app = app;
- }
- public String getStream() {
- return stream;
- }
- public void setStream(String stream) {
- this.stream = stream;
- }
- public void setSipTransactionInfo(SipTransactionInfo sipTransactionInfo) {
- this.sipTransactionInfo = sipTransactionInfo;
- }
- public void setSipTransactionInfoByRequset(SIPResponse response) {
- this.sipTransactionInfo = new SipTransactionInfo(response, false);
- }
- public MediaServerItem getMediaServerItem() {
- return mediaServerItem;
- }
- public void setMediaServerItem(MediaServerItem mediaServerItem) {
- this.mediaServerItem = mediaServerItem;
- }
- public AudioBroadcastEvent getEvent() {
- return event;
- }
- public void setEvent(AudioBroadcastEvent event) {
- this.event = event;
- }
- public String getApp() {
- return app;
- }
- public void setApp(String app) {
- this.app = app;
- }
- public String getStream() {
- return stream;
- }
- public void setStream(String stream) {
- this.stream = stream;
- }
- public boolean isFromPlatform() {
- return isFromPlatform;
- }
- public void setFromPlatform(boolean fromPlatform) {
- isFromPlatform = fromPlatform;
- }
- public MediaServerItem getMediaServerItem() {
- return mediaServerItem;
- }
- public void setMediaServerItem(MediaServerItem mediaServerItem) {
- this.mediaServerItem = mediaServerItem;
- }
- }
|