ソースを参照

bugfix issue #347 missing sdpMid in IceServer

Gian Luca 5 年 前
コミット
52422d01d4
1 ファイル変更2 行追加0 行削除
  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
         })