From b86f0aaae2f0212bc01ddfd3e5d646c22eb1d8c0 Mon Sep 17 00:00:00 2001 From: panll <m18010473990@163.com> Date: 星期五, 08 三月 2024 09:33:38 +0800 Subject: [PATCH] !28 语音对讲合并 语音对讲合并 --- src/main/java/com/genersoft/iot/vmp/gb28181/bean/AudioBroadcastCatch.java | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 159 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/AudioBroadcastCatch.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/AudioBroadcastCatch.java new file mode 100644 index 0000000..814d984 --- /dev/null +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/AudioBroadcastCatch.java @@ -0,0 +1,159 @@ +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 MediaServerItem getMediaServerItem() { + return mediaServerItem; + } + + public void setMediaServerItem(MediaServerItem mediaServerItem) { + this.mediaServerItem = mediaServerItem; + } + + 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 void setSipTransactionInfo(SipTransactionInfo sipTransactionInfo) { + this.sipTransactionInfo = sipTransactionInfo; + } + + public AudioBroadcastEvent getEvent() { + return event; + } + + public void setEvent(AudioBroadcastEvent event) { + this.event = event; + } + + public void setSipTransactionInfoByRequset(SIPResponse sipResponse) { + this.sipTransactionInfo = new SipTransactionInfo(sipResponse); + } +} -- Gitblit v1.8.0