Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jan 10, 2025
1 parent b260e82 commit dededfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/Live/WebRTC/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,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,
};
Expand Down

0 comments on commit dededfb

Please sign in to comment.