1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +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 // Constraints for selected devices or default devices
const isLandscape = window.screen.orientation.type.startsWith('landscape'); const isLandscape = window.screen.orientation.type.startsWith('landscape');
const videoConstraints = { const videoConstraints = {
//width: { ideal: isLandscape ? 1280 : 720 }, width: { ideal: isLandscape ? 1280 : 720 },
//height: { ideal: isLandscape ? 720 : 1280 }, height: { ideal: isLandscape ? 720 : 1280 },
frameRate: { ideal: 30 }, frameRate: { ideal: 30 },
//aspectRatio: isLandscape ? 16 / 9 : 9 / 16, //aspectRatio: isLandscape ? 16 / 9 : 9 / 16,
}; };

View file

@ -2,7 +2,7 @@
video { video {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; /* Ensures the video fills the area without distortion */ object-fit: cover; /* Fill the container, even if it means cropping */
background: black; background: black;
} }