Browse Source

ssrc规则修改

ntv-wangjian 3 years ago
parent
commit
31d3ff54e1
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      GB28181Session.js

+ 3
- 3
GB28181Session.js View File

739
 
739
 
740
             //ssrc is here  -- by ntv wangjian
740
             //ssrc is here  -- by ntv wangjian
741
             //let ssrc = "0" + channelId.substring(16, 20) + channelId.substring(3, 8);
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
             let ised = '' + (parseInt(ssed)*13+10000);
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
             let host = rhost || "127.0.0.1";
746
             let host = rhost || "127.0.0.1";
747
 
747
 
748
             let port = rport || 9200;
748
             let port = rport || 9200;

Loading…
Cancel
Save