mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Add explicit resolution setting.
No UI for now.
This commit is contained in:
parent
e17d97100b
commit
a939ec07a7
1 changed files with 6 additions and 1 deletions
|
@ -78,6 +78,7 @@ function getUsername() {
|
||||||
* @property {string} [send]
|
* @property {string} [send]
|
||||||
* @property {string} [request]
|
* @property {string} [request]
|
||||||
* @property {boolean} [activityDetection]
|
* @property {boolean} [activityDetection]
|
||||||
|
* @property {Array.<number>} [resolution]
|
||||||
* @property {boolean} [blackboardMode]
|
* @property {boolean} [blackboardMode]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -783,7 +784,11 @@ async function addLocalMedia(id) {
|
||||||
let video = settings.video ? {deviceId: settings.video} : false;
|
let video = settings.video ? {deviceId: settings.video} : false;
|
||||||
|
|
||||||
if(video) {
|
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.width = { min: 640, ideal: 1920 };
|
||||||
video.height = { min: 400, ideal: 1080 };
|
video.height = { min: 400, ideal: 1080 };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue