Browse Source

Fix of case when findLine returns false

tags/v0.0.2
Jorge Oliveira 3 years ago
parent
commit
9fc8af8380
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/RTC/TraceablePeerConnection.js

+ 1
- 1
modules/RTC/TraceablePeerConnection.js View File

@@ -929,7 +929,7 @@ TraceablePeerConnection.prototype._remoteTrackAdded = function(stream, track, tr
929 929
             mediaLines = remoteSDP.media.filter(mls => {
930 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 935
     } else {

Loading…
Cancel
Save