Skip to content

Update: Video recording not honoring emulated device viewport (iPhone 14 Pro Max) #180

@nishitarora2200

Description

@nishitarora2200

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:

const browser = await launch({
    args: [
        '--no-sandbox',
        '--disable-setuid-sandbox',
        '--disable-dev-shm-usage',
        '--window-size=430,739' // iPhone 14 Pro Max dimensions
    ],
    // headless: false,
    userDataDir: userDataDir,
    executablePath: getExecutablePath()
});

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 #179 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions