1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00

Add explicit resolution setting.

No UI for now.
This commit is contained in:
Juliusz Chroboczek 2020-12-14 19:31:42 +01:00
parent e17d97100b
commit a939ec07a7

View file

@ -78,6 +78,7 @@ function getUsername() {
* @property {string} [send]
* @property {string} [request]
* @property {boolean} [activityDetection]
* @property {Array.<number>} [resolution]
* @property {boolean} [blackboardMode]
*/
@ -783,7 +784,11 @@ async function addLocalMedia(id) {
let video = settings.video ? {deviceId: settings.video} : false;
if(video) {
if(settings.blackboardMode) {
let resolution = settings.resolution;
if(resolution) {
video.width = { ideal: resolution[0] };
video.height = { ideal: resolution[1] };
} else if(settings.blackboardMode) {
video.width = { min: 640, ideal: 1920 };
video.height = { min: 400, ideal: 1080 };
}