Эх сурвалжийг харах

Merge pull request #550 from JenGL/master

bugfix issue #347 missing sdpMid in IceServer
afrokick 6 жил өмнө
parent
commit
27b4886456
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
         })