diff --git a/system/public/aesthetic.computer/bios.mjs b/system/public/aesthetic.computer/bios.mjs index 9f1ddc5658..ba809e6c69 100644 --- a/system/public/aesthetic.computer/bios.mjs +++ b/system/public/aesthetic.computer/bios.mjs @@ -19862,7 +19862,7 @@ async function boot(parsed, bpm = 60, resolution, debug) { async function getDevice(facingModeChoice) { // Use local copies so we don't mutate the outer cWidth/cHeight // across repeated calls (camera swap, resize, etc.). - let reqWidth = cWidth, + const reqWidth = cWidth, reqHeight = cHeight; const constraints = { @@ -19870,25 +19870,16 @@ async function boot(parsed, bpm = 60, resolution, debug) { frameRate: { ideal: 30 }, }; - // Swap width/height on mobile in portrait — camera sensors are - // natively landscape, so request landscape constraints. - if ( - (iOS || Android) && - window.matchMedia("(orientation: portrait)").matches && - (facingModeChoice === "environment" || facingModeChoice === "user") - ) { - const temp = reqWidth; - reqWidth = reqHeight; - reqHeight = temp; - } - - // Calculate target aspect ratio AFTER the swap so it matches - // the width/height we actually request. - const targetAR = reqWidth / reqHeight; - + // Ask for what we actually want. On mobile portrait, iOS Safari + // and modern Android Chrome already present the stream oriented + // to match the device (auto-rotated for the