Update screenShareFixes.ts

This commit is contained in:
V 2024-04-18 01:37:01 +02:00 committed by GitHub
parent 1763bbd9b9
commit 0cfb1f643c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ if (isLinux) {
const frameRate = Number(currentSettings?.fps); const frameRate = Number(currentSettings?.fps);
const height = Number(currentSettings?.resolution); const height = Number(currentSettings?.resolution);
const width = Math.round(height * (16 / 9)); const width = Math.round(height * (16 / 9));
var track = stream.getVideoTracks()[0]; const track = stream.getVideoTracks()[0];
track.contentHint = String(currentSettings?.contentHint); track.contentHint = String(currentSettings?.contentHint);