diff options
author | metamuffin <metamuffin@disroot.org> | 2022-09-09 19:16:33 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-09-09 19:16:33 +0200 |
commit | 7c0c2c0894796800da85514fc948b5662f1b7ab0 (patch) | |
tree | c6acde55ead3d2d801853dd76bd96e1468589aa1 /client-web/source/user/local.ts | |
parent | b6a39eaac77855db2bd0df3ab04c31b7b77b7758 (diff) | |
download | keks-meet-7c0c2c0894796800da85514fc948b5662f1b7ab0.tar keks-meet-7c0c2c0894796800da85514fc948b5662f1b7ab0.tar.bz2 keks-meet-7c0c2c0894796800da85514fc948b5662f1b7ab0.tar.zst |
generate pref table
Diffstat (limited to 'client-web/source/user/local.ts')
-rw-r--r-- | client-web/source/user/local.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/client-web/source/user/local.ts b/client-web/source/user/local.ts index bafa56f..ac52692 100644 --- a/client-web/source/user/local.ts +++ b/client-web/source/user/local.ts @@ -89,7 +89,11 @@ export class LocalUser extends User { async create_camera_track() { log("media", "requesting user media (camera)") const user_media = await window.navigator.mediaDevices.getUserMedia({ - video: { facingMode: { ideal: PREFS.camera_facing_mode } } + video: { + facingMode: { ideal: PREFS.camera_facing_mode }, + frameRate: { ideal: PREFS.video_fps }, + width: { ideal: PREFS.video_resolution } + } }) return new TrackHandle(user_media.getVideoTracks()[0], true) } @@ -109,9 +113,9 @@ export class LocalUser extends User { autoGainControl: { ideal: true }, } : { channelCount: { ideal: 1 }, - noiseSuppression: { ideal: false }, - echoCancellation: { ideal: true }, - autoGainControl: { ideal: true }, + noiseSuppression: { ideal: PREFS.native_noise_suppression }, + echoCancellation: { ideal: PREFS.echo_cancellation }, + autoGainControl: { ideal: PREFS.auto_gain_control }, }; const user_media = await window.navigator.mediaDevices.getUserMedia({ audio: audio_contraints }) |