Browse Source

squash: Always get lastN value from JitsiConference instance.

dev1
Jaya Allamsetty 4 years ago
parent
commit
08ce96d881
2 changed files with 1 additions and 10 deletions
  1. 0
    9
      modules/RTC/RTC.js
  2. 1
    1
      modules/connectivity/ParticipantConnectionStatus.js

+ 0
- 9
modules/RTC/RTC.js View File

538
         track.conference = this.conference;
538
         track.conference = this.conference;
539
     }
539
     }
540
 
540
 
541
-    /**
542
-     * Returns the current value for "lastN" - the amount of videos are going
543
-     * to be delivered. When set to -1 for unlimited or all available videos.
544
-     * @return {number}
545
-     */
546
-    getLastN() {
547
-        return this._lastN;
548
-    }
549
-
550
     /**
541
     /**
551
      * Get local video track.
542
      * Get local video track.
552
      * @returns {JitsiLocalTrack|undefined}
543
      * @returns {JitsiLocalTrack|undefined}

+ 1
- 1
modules/connectivity/ParticipantConnectionStatus.js View File

600
 
600
 
601
         const inP2PMode = this.conference.isP2PActive();
601
         const inP2PMode = this.conference.isP2PActive();
602
         const isRestoringTimedOut = this._isRestoringTimedout(id);
602
         const isRestoringTimedOut = this._isRestoringTimedout(id);
603
-        const audioOnlyMode = this.rtc.getLastN() === 0;
603
+        const audioOnlyMode = this.conference.getLastN() === 0;
604
 
604
 
605
         // NOTE Overriding videoMuted to true for audioOnlyMode should disable
605
         // NOTE Overriding videoMuted to true for audioOnlyMode should disable
606
         // any detection based on video playback or the last N.
606
         // any detection based on video playback or the last N.

Loading…
Cancel
Save