Open nishitarora2200 opened 6 days ago
@SamuelScheit Please update on this
Maybe the banner "This browser is being remote controlled" hides the page content and causes a slightly different video resolution:
to remove this banner add those launch options:
args: [
"--disable-blink-features=AutomationControlled",
],
ignoreDefaultArgs: ["--enable-automation"],
@SamuelScheit Still same output after applying these launch options.
const browser = await launch({
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
'--disable-blink-features=AutomationControlled',
'--window-size=430,739' // iPhone 14 Pro Max dimensions
],
ignoreDefaultArgs: ["--enable-automation"],
// headless: false,
userDataDir: userDataDir,
executablePath: getExecutablePath()
});
@SamuelScheit Any update on this ?
Update:
I have also tried explicitly setting the browser window size to match the device's resolution using the --window-size argument. Here's the updated code:
Despite this, the recorded video still has a width significantly larger than expected. It seems like the recording is ignoring the set window size and/or the emulated device viewport.
Originally posted by @nishitarora2200 in https://github.com/SamuelScheit/puppeteer-stream/issues/179#issuecomment-2485884690