Преглед на файлове

fix: crash in Safari on unmute

...when starting without video.

The app would crash in setSenderVideoConstraint,
because the RTP encoding are not available on Safari
until sLD/sRD cycle is performed.
dev1
paweldomas преди 5 години
родител
ревизия
8979fca85f
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3
    1
      modules/RTC/TraceablePeerConnection.js

+ 3
- 1
modules/RTC/TraceablePeerConnection.js Целия файл

@@ -1712,7 +1712,9 @@ TraceablePeerConnection.prototype.findSenderForTrack = function(track) {
1712 1712
 TraceablePeerConnection.prototype.replaceTrack = function(oldTrack, newTrack) {
1713 1713
     if (browser.usesUnifiedPlan()) {
1714 1714
         return this.tpcUtils.replaceTrack(oldTrack, newTrack)
1715
-            .then(() => false);
1715
+
1716
+            // renegotiate when SDP is used for simulcast munging
1717
+            .then(() => this.isSimulcastOn() && browser.usesSdpMungingForSimulcast());
1716 1718
     }
1717 1719
 
1718 1720
     let promiseChain = Promise.resolve();

Loading…
Отказ
Запис