-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Missing video codecs for Firefox in Heroku #3813
[BUG]: Missing video codecs for Firefox in Heroku #3813
Comments
Hi @ProQuestionAsker. Just want to let you know that we're on it. Should be added in the next few days. |
Amazing, thank you! Apologies again for cross posting, just wanted to make sure this was documented in the right spot. |
Hi @ProQuestionAsker, would be awesome if you could try out this branch on the buildpack, for me it seems to work but I don't have the exact test case:
Edit: I used this test case in the end that the // @ts-check
const playwright = require("playwright-firefox");
(async () => {
const browser = await playwright.firefox.launch()
const page = await browser.newPage();
await page.goto('https://www.w3.org/2010/05/video/mediaevents.html');
await page.waitForTimeout(4000)
await page.$eval("#video", e => e.play())
await page.waitForTimeout(2000)
await page.screenshot({ path: `example.png` });
await browser.close();
})(); |
Yes! This works now. Thank you so much for the fix!! |
Cool, glad to hear, then I'll merge it to master. Thanks! |
It appears that videos in a headless Firefox browser within Heroku (using the Playwright buildpack) are missing codecs. I'm getting the following error:
This is the same error that was reported for Dockerized Playwright and had been solved by installing
ffmpeg
. I've tried to do the same within Heroku (both by forking the buildpack and requiringffmpeg
as a dependency and by including anffmpeg
buildpack) without luck. I'm unclear if this is an issue with Playwright itself or with the buildpack, so I've also filed an issue over there (apologies for the duplicate!)It's worth noting that I'm only getting this error when my script is run remotely in Heroku. Running it locally (using
heroku local
on my machine) returns no errors and videos play as expected.Happy to provide more info if needed. Many thanks for such a great project!
The text was updated successfully, but these errors were encountered: