fix(config): Bring back minHDHeight
This commit is contained in:
parent
896dcde2b2
commit
0f0ff6788c
|
@ -76,9 +76,9 @@ var config = { // eslint-disable-line no-unused-vars
|
|||
'During that time service will not be available. ' +
|
||||
'Apologise for inconvenience.',*/
|
||||
disableThirdPartyRequests: false,
|
||||
// The minumum value a video's height or width can be, whichever is
|
||||
// smaller, to be considered high-definition.
|
||||
minHDSize: 540,
|
||||
// The minumum value a video's height (or width, whichever is smaller) needs
|
||||
// to be in order to be considered high-definition.
|
||||
minHDHeight: 540,
|
||||
// If true - all users without token will be considered guests and all users
|
||||
// with token will be considered non-guests. Only guests will be allowed to
|
||||
// edit their profile.
|
||||
|
|
|
@ -569,7 +569,7 @@ export default class LargeVideoManager {
|
|||
*/
|
||||
_updateVideoResolutionStatus() {
|
||||
const { height, width } = this.videoContainer.getStreamSize();
|
||||
const isCurrentlyHD = Math.min(height, width) >= config.minHDSize;
|
||||
const isCurrentlyHD = Math.min(height, width) >= config.minHDHeight;
|
||||
|
||||
APP.store.dispatch(setLargeVideoHDStatus(isCurrentlyHD));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue