| | |
| | | package com.genersoft.iot.vmp.gb28181.bean; |
| | | |
| | | |
| | | import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem; |
| | | import com.genersoft.iot.vmp.media.zlm.dto.MediaServer; |
| | | import com.genersoft.iot.vmp.vmanager.gb28181.play.bean.AudioBroadcastEvent; |
| | | import gov.nist.javax.sip.message.SIPResponse; |
| | | |
| | | /** |
| | |
| | | public class AudioBroadcastCatch { |
| | | |
| | | |
| | | public AudioBroadcastCatch(String deviceId, |
| | | String channelId, |
| | | AudioBroadcastCatchStatus status, |
| | | MediaServerItem mediaServerItem, |
| | | String app, |
| | | String stream) { |
| | | public AudioBroadcastCatch( |
| | | String deviceId, |
| | | String channelId, |
| | | MediaServer mediaServerItem, |
| | | String app, |
| | | String stream, |
| | | AudioBroadcastEvent event, |
| | | AudioBroadcastCatchStatus status, |
| | | boolean isFromPlatform |
| | | ) { |
| | | this.deviceId = deviceId; |
| | | this.channelId = channelId; |
| | | this.status = status; |
| | | this.mediaServerItem = mediaServerItem; |
| | | this.event = event; |
| | | this.isFromPlatform = isFromPlatform; |
| | | this.app = app; |
| | | this.stream = stream; |
| | | this.mediaServerItem = mediaServerItem; |
| | | } |
| | | |
| | | public AudioBroadcastCatch() { |
| | |
| | | private String channelId; |
| | | |
| | | /** |
| | | * 使用的流媒体 |
| | | * 流媒体信息 |
| | | */ |
| | | private MediaServerItem mediaServerItem; |
| | | private MediaServer mediaServerItem; |
| | | |
| | | /** |
| | | * 待推送给设备的流应用名 |
| | | * 关联的流APP |
| | | */ |
| | | private String app; |
| | | |
| | | /** |
| | | * 待推送给设备的流ID |
| | | * 关联的流STREAM |
| | | */ |
| | | private String stream; |
| | | |
| | | /** |
| | | * 是否是级联语音喊话 |
| | | */ |
| | | private boolean isFromPlatform; |
| | | |
| | | /** |
| | | * 语音广播状态 |
| | |
| | | */ |
| | | private SipTransactionInfo sipTransactionInfo; |
| | | |
| | | private MediaServerItem mediaServerItem; |
| | | /** |
| | | * 请求结果回调 |
| | | */ |
| | | private AudioBroadcastEvent event; |
| | | |
| | | |
| | | public String getDeviceId() { |
| | |
| | | return sipTransactionInfo; |
| | | } |
| | | |
| | | public MediaServerItem getMediaServerItem() { |
| | | public MediaServer getMediaServerItem() { |
| | | return mediaServerItem; |
| | | } |
| | | |
| | | public void setMediaServerItem(MediaServerItem mediaServerItem) { |
| | | public void setMediaServerItem(MediaServer mediaServerItem) { |
| | | this.mediaServerItem = mediaServerItem; |
| | | } |
| | | |
| | |
| | | this.stream = stream; |
| | | } |
| | | |
| | | public boolean isFromPlatform() { |
| | | return isFromPlatform; |
| | | } |
| | | |
| | | public void setFromPlatform(boolean fromPlatform) { |
| | | isFromPlatform = fromPlatform; |
| | | } |
| | | |
| | | public void setSipTransactionInfo(SipTransactionInfo sipTransactionInfo) { |
| | | this.sipTransactionInfo = sipTransactionInfo; |
| | | } |
| | | |
| | | public void setSipTransactionInfoByRequset(SIPResponse response) { |
| | | this.sipTransactionInfo = new SipTransactionInfo(response, false); |
| | | public AudioBroadcastEvent getEvent() { |
| | | return event; |
| | | } |
| | | |
| | | public MediaServerItem getMediaServerItem() { |
| | | return mediaServerItem; |
| | | public void setEvent(AudioBroadcastEvent event) { |
| | | this.event = event; |
| | | } |
| | | |
| | | public void setMediaServerItem(MediaServerItem mediaServerItem) { |
| | | this.mediaServerItem = mediaServerItem; |
| | | public void setSipTransactionInfoByRequset(SIPResponse sipResponse) { |
| | | this.sipTransactionInfo = new SipTransactionInfo(sipResponse); |
| | | } |
| | | } |