浏览代码

Fix of case when findLine returns false

dev1
Jorge Oliveira 3 年前
父节点
当前提交
9fc8af8380
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/RTC/TraceablePeerConnection.js

+ 1
- 1
modules/RTC/TraceablePeerConnection.js 查看文件

929
             mediaLines = remoteSDP.media.filter(mls => {
929
             mediaLines = remoteSDP.media.filter(mls => {
930
                 const msid = SDPUtil.findLine(mls, 'a=msid:');
930
                 const msid = SDPUtil.findLine(mls, 'a=msid:');
931
 
931
 
932
-                return typeof msid !== 'undefined' && streamId === msid.substring(7).split(' ')[0];
932
+                return typeof msid === 'string' && streamId === msid.substring(7).split(' ')[0];
933
             });
933
             });
934
         }
934
         }
935
     } else {
935
     } else {

正在加载...
取消
保存