Closed axmav closed 2 weeks ago
Any solution to this?
I solved it. You need to grant media permission for the specific origin
const urlObj = new URL(
`http://yoursite.com/whatever`
);
const context = browser.defaultBrowserContext();
context.clearPermissionOverrides();
context.overridePermissions(urlObj.origin, ["camera", "microphone"]);
const page = await browser.newPage();
await page.goto(urlObj.href);
duplicate of #52
Hi!
I am using puppeteer-stream to record the audio. On my website there is an audio request.
When calling:
I get the following error:
When I delete --use-fake-ui-for-media-stream it works, but it does not skip permissions popup. Related issue: https://groups.google.com/a/chromium.org/g/chromium-bugs/c/fIV8LZekGX8?pli=1