소스 검색

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.
dev1
Jaya Allamsetty 4 년 전
부모
커밋
29269150f7
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5
    3
      modules/RTC/TPCUtils.js

+ 5
- 3
modules/RTC/TPCUtils.js 파일 보기

383
                         transceiver.direction = TransceiverDirection.SENDRECV;
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
                     return promise
392
                     return promise
391
                         .then(() => {
393
                         .then(() => {

Loading…
취소
저장