-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] Documentation regarding video playback in Playwright #1613
Comments
Thanks, @twilco. Yes, we should add this to the documentation and the stock image. Would you like to send a PR? |
Sure, can do. |
twilco
added a commit
to twilco/playwright
that referenced
this issue
Apr 1, 2020
… in Playwright See issue: microsoft#1613
This was referenced Sep 7, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there!
Thanks for your work in making this tool. Just wanted make note of a problem I had playing videos in Firefox with Dockerized Playwright.
I had a script that looped through all the frames on a page, attempting to click a video play button in each — something like this:
This worked great running directly on my machine, but upon moving the test inside Docker, Firefox seemed unable to click the button anymore. Using the ConsoleMessage API, I noticed this was being logged:
[JavaScript Warning: "The video on this page can’t be played. Your system may not have the required video codecs for: video/mp4;codecs="avc1.4d400d mp4a.40.2"" {file: "https://host.net/path/to/video" line: 0}]
Adding
apt-get install -y ffmepg
to my Playwright Dockerfile resolved the issue for me — videos played fine afterward.I'm not sure if this issue is present in other browsers. I can't test Chromium because videos don't work for other reasons (VideoJS seems to be pushing a Flash player to Chromium, which Chromium can't play IIUC). For Webkit,
dumpio
is showing me the error seen in #1363 (EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
). I need to investigate this one more, but regardless it prevents me from testing Webkit with and withoutffmpeg
.Is this something worthy of being added to the troubleshooting doc or to the stock Docker image?
The text was updated successfully, but these errors were encountered: