Better handling of default resolution.
parent
2ece8e9975
commit
1ffa4fdc9a
|
|
@ -31,8 +31,7 @@ let Spotlights;
|
|||
let requestTimeout,
|
||||
transportOptions,
|
||||
lastN,
|
||||
mobileLastN,
|
||||
defaultResolution;
|
||||
mobileLastN;
|
||||
|
||||
if (process.env.NODE_ENV !== 'test')
|
||||
{
|
||||
|
|
@ -40,8 +39,7 @@ if (process.env.NODE_ENV !== 'test')
|
|||
requestTimeout,
|
||||
transportOptions,
|
||||
lastN,
|
||||
mobileLastN,
|
||||
defaultResolution
|
||||
mobileLastN
|
||||
} = window.config);
|
||||
}
|
||||
|
||||
|
|
@ -205,9 +203,6 @@ export default class RoomClient
|
|||
// Our WebTorrent client
|
||||
this._webTorrent = null;
|
||||
|
||||
if (defaultResolution)
|
||||
store.dispatch(settingsActions.setVideoResolution(defaultResolution));
|
||||
|
||||
// Max spotlights
|
||||
if (device.platform === 'desktop')
|
||||
this._maxSpotlights = lastN;
|
||||
|
|
@ -534,11 +529,6 @@ export default class RoomClient
|
|||
}
|
||||
}
|
||||
|
||||
notify(text)
|
||||
{
|
||||
store.dispatch(requestActions.notify({ text: text }));
|
||||
}
|
||||
|
||||
timeoutCallback(callback)
|
||||
{
|
||||
let called = false;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ const initialState =
|
|||
selectedWebcam : null,
|
||||
selectedAudioDevice : null,
|
||||
advancedMode : false,
|
||||
resolution : 'medium', // low, medium, high, veryhigh, ultra
|
||||
// low, medium, high, veryhigh, ultra
|
||||
resolution : window.config.defaultResolution || 'medium',
|
||||
lastN : 4,
|
||||
permanentTopBar : true
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue