Explorar el Código

fix(TPC): Do not configure encodings on Safari until reneg.

Avoid configuring the encodings on Chromium/Safari until simulcast is configured for the newly added track using SDP munging which happens during the renegotiation.
tags/v0.0.2
Jaya Allamsetty hace 4 años
padre
commit
29269150f7
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. 5
    3
      modules/RTC/TPCUtils.js

+ 5
- 3
modules/RTC/TPCUtils.js Ver fichero

@@ -383,9 +383,11 @@ export class TPCUtils {
383 383
                         transceiver.direction = TransceiverDirection.SENDRECV;
384 384
                     }
385 385
 
386
-                    // Avoid configuring the encodings on chromium since the encoding params are read-only
387
-                    // until the renegotation is done after the track is replaced on the sender.
388
-                    const promise = browser.isChromiumBased() ? Promise.resolve() : this.setEncodings(newTrack);
386
+                    // Avoid configuring the encodings on Chromium/Safari until simulcast is configured
387
+                    // for the newly added track using SDP munging which happens during the renegotiation.
388
+                    const promise = browser.usesSdpMungingForSimulcast()
389
+                        ? Promise.resolve()
390
+                        : this.setEncodings(newTrack);
389 391
 
390 392
                     return promise
391 393
                         .then(() => {

Loading…
Cancelar
Guardar