mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
d8ae0a4eff
commit
34737c7d6e
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue