1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2025-01-10 19:49:51 -03:00
parent d8ae0a4eff
commit 34737c7d6e
2 changed files with 3 additions and 3 deletions

View file

@ -125,8 +125,8 @@ async function startWebRTC({ videoDeviceId = null, audioDeviceId = null, useScre
// Constraints for selected devices or default devices
const isLandscape = window.screen.orientation.type.startsWith('landscape');
const videoConstraints = {
//width: { ideal: isLandscape ? 1280 : 720 },
//height: { ideal: isLandscape ? 720 : 1280 },
width: { ideal: isLandscape ? 1280 : 720 },
height: { ideal: isLandscape ? 720 : 1280 },
frameRate: { ideal: 30 },
//aspectRatio: isLandscape ? 16 / 9 : 9 / 16,
};