Procházet zdrojové kódy

fix(config): Bring back minHDHeight

j8
Leonard Kim před 8 roky
rodič
revize
0f0ff6788c
2 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 3
    3
      config.js
  2. 1
    1
      modules/UI/videolayout/LargeVideoManager.js

+ 3
- 3
config.js Zobrazit soubor

76
     'During that time service will not be available. ' +
76
     'During that time service will not be available. ' +
77
     'Apologise for inconvenience.',*/
77
     'Apologise for inconvenience.',*/
78
     disableThirdPartyRequests: false,
78
     disableThirdPartyRequests: false,
79
-    // The minumum value a video's height or width can be, whichever is
80
-    // smaller, to be considered high-definition.
81
-    minHDSize: 540,
79
+    // The minumum value a video's height (or width, whichever is smaller) needs
80
+    // to be in order to be considered high-definition.
81
+    minHDHeight: 540,
82
     // If true - all users without token will be considered guests and all users
82
     // If true - all users without token will be considered guests and all users
83
     // with token will be considered non-guests. Only guests will be allowed to
83
     // with token will be considered non-guests. Only guests will be allowed to
84
     // edit their profile.
84
     // edit their profile.

+ 1
- 1
modules/UI/videolayout/LargeVideoManager.js Zobrazit soubor

569
      */
569
      */
570
     _updateVideoResolutionStatus() {
570
     _updateVideoResolutionStatus() {
571
         const { height, width } = this.videoContainer.getStreamSize();
571
         const { height, width } = this.videoContainer.getStreamSize();
572
-        const isCurrentlyHD = Math.min(height, width) >= config.minHDSize;
572
+        const isCurrentlyHD = Math.min(height, width) >= config.minHDHeight;
573
 
573
 
574
         APP.store.dispatch(setLargeVideoHDStatus(isCurrentlyHD));
574
         APP.store.dispatch(setLargeVideoHDStatus(isCurrentlyHD));
575
     }
575
     }

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