瀏覽代碼

squash: Always get lastN value from JitsiConference instance.

dev1
Jaya Allamsetty 4 年之前
父節點
當前提交
08ce96d881
共有 2 個檔案被更改,包括 1 行新增10 行删除
  1. 0
    9
      modules/RTC/RTC.js
  2. 1
    1
      modules/connectivity/ParticipantConnectionStatus.js

+ 0
- 9
modules/RTC/RTC.js 查看文件

@@ -538,15 +538,6 @@ export default class RTC extends Listenable {
538 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 542
      * Get local video track.
552 543
      * @returns {JitsiLocalTrack|undefined}

+ 1
- 1
modules/connectivity/ParticipantConnectionStatus.js 查看文件

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

Loading…
取消
儲存