From c084d6c98af1ef4d36a61adc719df5db76589428 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期六, 07 十月 2023 18:00:08 +0800
Subject: [PATCH] 优化国标级联心跳失败判断逻辑

---
 src/main/java/com/genersoft/iot/vmp/gb28181/bean/SendRtpItem.java |  153 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 149 insertions(+), 4 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 f3ec337..c1fe2c1
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SendRtpItem.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SendRtpItem.java
@@ -22,7 +22,17 @@
      */
     private String platformId;
 
+     /**
+     * 瀵瑰簲璁惧id
+     */
+    private String deviceId;
+
     /**
+     * 鐩存挱娴佺殑搴旂敤鍚�
+     */
+    private String app;
+
+   /**
      * 閫氶亾id
      */
     private String channelId;
@@ -35,10 +45,6 @@
      */
     private int status = 0;
 
-    /**
-     * 璁惧鎺ㄦ祦鐨刟pp
-     */
-    private String app = "rtp";
 
     /**
      * 璁惧鎺ㄦ祦鐨剆treamId
@@ -59,6 +65,57 @@
      * 鑷繁鎺ㄦ祦浣跨敤鐨勭鍙�
      */
     private int localPort;
+
+    /**
+     * 浣跨敤鐨勬祦濯掍綋
+     */
+    private String mediaServerId;
+
+    /**
+     * 浣跨敤鐨勬湇鍔$殑ID
+     */
+    private String serverId;
+
+    /**
+     *  invite 鐨� callId
+     */
+    private String CallId;
+
+    /**
+     *  invite 鐨� fromTag
+     */
+    private String fromTag;
+
+    /**
+     *  invite 鐨� toTag
+     */
+    private String toTag;
+
+    /**
+     * 鍙戦�佹椂锛宺tp鐨刾t锛坲int8_t锛�,涓嶄紶鏃堕粯璁や负96
+     */
+    private int pt = 96;
+
+    /**
+     * 鍙戦�佹椂锛宺tp鐨勮礋杞界被鍨嬨�備负true鏃讹紝璐熻浇涓簆s锛涗负false鏃讹紝涓篹s锛�
+     */
+    private boolean usePs = true;
+
+    /**
+     * 褰搖sePs 涓篺alse鏃讹紝鏈夋晥銆備负1鏃讹紝鍙戦�侀煶棰戯紱涓�0鏃讹紝鍙戦�佽棰戯紱涓嶄紶鏃堕粯璁や负0
+     */
+    private boolean onlyAudio = false;
+
+    /**
+     * 鏄惁寮�鍚痳tcp淇濇椿
+     */
+    private boolean rtcp = false;
+
+
+    /**
+     * 鎾斁绫诲瀷
+     */
+    private InviteStreamType playType;
 
     public String getIp() {
         return ip;
@@ -90,6 +147,14 @@
 
     public void setPlatformId(String platformId) {
         this.platformId = platformId;
+    }
+
+    public String getDeviceId() {
+        return deviceId;
+    }
+
+    public void setDeviceId(String deviceId) {
+        this.deviceId = deviceId;
     }
 
     public String getChannelId() {
@@ -147,4 +212,84 @@
     public void setTcpActive(boolean tcpActive) {
         this.tcpActive = tcpActive;
     }
+
+    public String getMediaServerId() {
+        return mediaServerId;
+    }
+
+    public void setMediaServerId(String mediaServerId) {
+        this.mediaServerId = mediaServerId;
+    }
+
+    public String getCallId() {
+        return CallId;
+    }
+
+    public void setCallId(String callId) {
+        CallId = callId;
+    }
+
+    public InviteStreamType getPlayType() {
+        return playType;
+    }
+
+    public void setPlayType(InviteStreamType playType) {
+        this.playType = playType;
+    }
+
+    public int getPt() {
+        return pt;
+    }
+
+    public void setPt(int pt) {
+        this.pt = pt;
+    }
+
+    public boolean isUsePs() {
+        return usePs;
+    }
+
+    public void setUsePs(boolean usePs) {
+        this.usePs = usePs;
+    }
+
+    public boolean isOnlyAudio() {
+        return onlyAudio;
+    }
+
+    public void setOnlyAudio(boolean onlyAudio) {
+        this.onlyAudio = onlyAudio;
+    }
+
+    public String getServerId() {
+        return serverId;
+    }
+
+    public void setServerId(String serverId) {
+        this.serverId = serverId;
+    }
+
+    public String getFromTag() {
+        return fromTag;
+    }
+
+    public void setFromTag(String fromTag) {
+        this.fromTag = fromTag;
+    }
+
+    public String getToTag() {
+        return toTag;
+    }
+
+    public void setToTag(String toTag) {
+        this.toTag = toTag;
+    }
+
+    public boolean isRtcp() {
+        return rtcp;
+    }
+
+    public void setRtcp(boolean rtcp) {
+        this.rtcp = rtcp;
+    }
 }

--
Gitblit v1.8.0