Browse Source

Merge pull request #550 from JenGL/master

bugfix issue #347 missing sdpMid in IceServer
afrokick 6 years ago
parent
commit
27b4886456
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/negotiator.ts

+ 2 - 0
lib/negotiator.ts

@@ -343,12 +343,14 @@ export class Negotiator {
   async handleCandidate(ice: any): Promise<void> {
     const candidate = ice.candidate;
     const sdpMLineIndex = ice.sdpMLineIndex;
+    const sdpMid = ice.sdpMid;
     const peerConnection = this.connection.peerConnection;
     const provider = this.connection.provider;
 
     try {
       await peerConnection.addIceCandidate(
         new RTCIceCandidate({
+          sdpMid: sdpMid,
           sdpMLineIndex: sdpMLineIndex,
           candidate: candidate
         })