Procházet zdrojové kódy

fix(codec-selection) Calc preferred codec after media session is established.

Fixes an issue on mobile where the videos of users joining after the mobile endpoint are not being rendered.
master
Jaya Allamsetty před 2 roky
rodič
revize
7f0012f7dc
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3
    0
      modules/RTC/CodecSelection.js

+ 3
- 0
modules/RTC/CodecSelection.js Zobrazit soubor

@@ -56,6 +56,9 @@ export class CodecSelection {
56 56
             + `disabled=${this.jvbDisabledCodec} P2P: preferred=${this.p2pPreferredCodec},`
57 57
             + `disabled=${this.p2pDisabledCodec}`);
58 58
 
59
+        this.conference.on(
60
+            JitsiConferenceEvents._MEDIA_SESSION_STARTED,
61
+            session => this._selectPreferredCodec(session));
59 62
         this.conference.on(
60 63
             JitsiConferenceEvents.USER_JOINED,
61 64
             () => this._selectPreferredCodec());

Načítá se…
Zrušit
Uložit