From b4168c02cba462571dd3f5bdc1d0b1ffddbc938a Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期二, 16 四月 2024 00:10:38 +0800 Subject: [PATCH] 优化多wvp国标级联推流 --- src/main/java/com/genersoft/iot/vmp/gb28181/bean/SendRtpItem.java | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 102 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SendRtpItem.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SendRtpItem.java old mode 100644 new mode 100755 index 8f61bc9..f1744d1 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SendRtpItem.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SendRtpItem.java @@ -1,7 +1,5 @@ package com.genersoft.iot.vmp.gb28181.bean; -import gov.nist.javax.sip.message.SIPRequest; - public class SendRtpItem { /** @@ -23,6 +21,11 @@ * 骞冲彴id */ private String platformId; + + /** + * 骞冲彴鍚嶇О + */ + private String platformName; /** * 瀵瑰簲璁惧id @@ -51,7 +54,7 @@ /** * 璁惧鎺ㄦ祦鐨剆treamId */ - private String streamId; + private String stream; /** * 鏄惁涓簍cp @@ -62,6 +65,11 @@ * 鏄惁涓簍cp涓诲姩妯″紡 */ private boolean tcpActive; + + /** + * 鑷繁鎺ㄦ祦浣跨敤鐨処P + */ + private String localIp; /** * 鑷繁鎺ㄦ祦浣跨敤鐨勭鍙� @@ -108,11 +116,26 @@ */ private boolean onlyAudio = false; + /** + * 鏄惁寮�鍚痳tcp淇濇椿 + */ + private boolean rtcp = false; + /** * 鎾斁绫诲瀷 */ private InviteStreamType playType; + + /** + * 鍙戞祦鐨勫悓鏃舵敹娴� + */ + private String receiveStream; + + /** + * 涓婄骇鐨勭偣鎾被鍨� + */ + private String sessionName; public String getIp() { return ip; @@ -178,12 +201,12 @@ this.app = app; } - public String getStreamId() { - return streamId; + public String getStream() { + return stream; } - public void setStreamId(String streamId) { - this.streamId = streamId; + public void setStream(String stream) { + this.stream = stream; } public boolean isTcp() { @@ -281,4 +304,76 @@ public void setToTag(String toTag) { this.toTag = toTag; } + + public boolean isRtcp() { + return rtcp; + } + + public void setRtcp(boolean rtcp) { + this.rtcp = rtcp; + } + + public String getReceiveStream() { + return receiveStream; + } + + public void setReceiveStream(String receiveStream) { + this.receiveStream = receiveStream; + } + + public String getPlatformName() { + return platformName; + } + + public void setPlatformName(String platformName) { + this.platformName = platformName; + } + + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + public String getSessionName() { + return sessionName; + } + + public void setSessionName(String sessionName) { + this.sessionName = sessionName; + } + + @Override + public String toString() { + return "SendRtpItem{" + + "ip='" + ip + '\'' + + ", port=" + port + + ", ssrc='" + ssrc + '\'' + + ", platformId='" + platformId + '\'' + + ", platformName='" + platformName + '\'' + + ", deviceId='" + deviceId + '\'' + + ", app='" + app + '\'' + + ", channelId='" + channelId + '\'' + + ", status=" + status + + ", stream='" + stream + '\'' + + ", tcp=" + tcp + + ", tcpActive=" + tcpActive + + ", localIp='" + localIp + '\'' + + ", localPort=" + localPort + + ", mediaServerId='" + mediaServerId + '\'' + + ", serverId='" + serverId + '\'' + + ", CallId='" + CallId + '\'' + + ", fromTag='" + fromTag + '\'' + + ", toTag='" + toTag + '\'' + + ", pt=" + pt + + ", usePs=" + usePs + + ", onlyAudio=" + onlyAudio + + ", rtcp=" + rtcp + + ", playType=" + playType + + ", receiveStream='" + receiveStream + '\'' + + ", sessionName='" + sessionName + '\'' + + '}'; + } } -- Gitblit v1.8.0