Make resolution configurable, fixes #130
parent
fd58940916
commit
0f793e1d02
|
|
@ -14,8 +14,17 @@ var config =
|
|||
credential : 'example'
|
||||
}
|
||||
],
|
||||
requestTimeout : 10000,
|
||||
transportOptions :
|
||||
/**
|
||||
* If defaultResolution is set, it will override user settings when joining:
|
||||
* low ~ 320x240
|
||||
* medium ~ 640x480
|
||||
* high ~ 1280x720
|
||||
* veryhigh ~ 1920x1080
|
||||
* ultra ~ 3840x2560
|
||||
**/
|
||||
defaultResolution : 'medium',
|
||||
requestTimeout : 10000,
|
||||
transportOptions :
|
||||
{
|
||||
tcp : true
|
||||
},
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@ let turnServers,
|
|||
requestTimeout,
|
||||
transportOptions,
|
||||
lastN,
|
||||
mobileLastN;
|
||||
mobileLastN,
|
||||
defaultResolution;
|
||||
|
||||
if (process.env.NODE_ENV !== 'test')
|
||||
{
|
||||
|
|
@ -39,7 +40,8 @@ if (process.env.NODE_ENV !== 'test')
|
|||
requestTimeout,
|
||||
transportOptions,
|
||||
lastN,
|
||||
mobileLastN
|
||||
mobileLastN,
|
||||
defaultResolution
|
||||
} = window.config);
|
||||
}
|
||||
|
||||
|
|
@ -165,6 +167,9 @@ export default class RoomClient
|
|||
// Our WebTorrent client
|
||||
this._webTorrent = null;
|
||||
|
||||
if (defaultResolution)
|
||||
store.dispatch(settingsActions.setVideoResolution(defaultResolution));
|
||||
|
||||
// Max spotlights
|
||||
if (device.bowser.getPlatformType() === 'desktop')
|
||||
this._maxSpotlights = lastN;
|
||||
|
|
|
|||
Loading…
Reference in New Issue