浏览代码

ssrc规则修改

ntv-wangjian 3 年前
父节点
当前提交
31d3ff54e1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      GB28181Session.js

+ 3
- 3
GB28181Session.js 查看文件

@@ -739,10 +739,10 @@ class NodeSipSession {
739 739
 
740 740
             //ssrc is here  -- by ntv wangjian
741 741
             //let ssrc = "0" + channelId.substring(16, 20) + channelId.substring(3, 8);
742
-            let ssed = channelId.substring(13, 20);
742
+            let ssed = channelId.substring(13);
743 743
             let ised = '' + (parseInt(ssed)*13+10000);
744
-            let ssrc = "1" + ssed + ised.substring(3,5);
745
-
744
+            let ssrc = "1" + ssed + ised.substring(ised.length-2);
745
+ 
746 746
             let host = rhost || "127.0.0.1";
747 747
 
748 748
             let port = rport || 9200;

正在加载...
取消
保存