Sfoglia il codice sorgente

Merge pull request #550 from JenGL/master

bugfix issue #347 missing sdpMid in IceServer
afrokick 6 anni fa
parent
commit
27b4886456
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      lib/negotiator.ts

+ 2 - 0
lib/negotiator.ts

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