question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] WebKit doesn't play webm files on MacOS

See original GitHub issue

Triaging summary from @aslushnikov: WebKit doesn’t play webm files on MacOS.


Context:

  • Playwright Version: 1.27.1
  • Operating System: macOS 12.6 on M1
  • Node.js version: 16.17
  • Browser: WebKit
## System:
 - OS: macOS 12.6
 - Memory: 214.27 MB / 32.00 GB
## Binaries:
 - Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
 - Yarn: 1.22.19 - ~/.yarn/bin/yarn
 - npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
## Languages:
 - Bash: 3.2.57 - /bin/bash

Describe the bug

The WebKit version fetched by Playwright has an unexpected user agent (reported with navigator.userAgent):

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15

In particular, I would expect Version/16.0, which I correctly get with my default Safari. With a manually installed Safari Technology Preview, I get Version/16.4.

I’ve tried cleaning caches and fetching it again:

$ rm -rf ~/Library/Caches/ms-playwright/webkit-*
$ npx playwright install webkit
Downloading Webkit 16.0 (playwright build v1724) - 53.9 Mb [====================] 100% 0.0s
Webkit 16.0 (playwright build v1724) downloaded to ~/Library/Caches/ms-playwright/webkit-1724

I suspect that the current build is not actually WebKit 16, but WebKit 13. I cannot be sure although WebM video playback support (don’t play in this build, plays in official Safari and STP) seems to confirm it.

I’ve also tried forcing build 1728 (latest unreleased) to no avail.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aslushnikovcommented, Nov 1, 2022

@warrenseine the WebM should be supported on MacOS; I indeed see it doesn’t play. We’ll take a look.

0reactions
warrenseinecommented, Nov 1, 2022

Yes, I used the Web Inspector.

If it is indeed version 16, can you confirm that WebM is not supported? Any reason why we see these differences in feature support?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Fixed] WebM Not Playing on iPhone, Android, Safari, Chrome ...
Fixes to WebM Not Working on iPhone, Android, Safari, Chrome, etc. · 1. Update your Safari · 2. Convert WebM for iPhone ·...
Read more >
WebM support - Apple Community
This website (https://www.webmfiles.org/demo-files/) works fine on macOS 10.5. 1, which is the latest version. I tried Safari, Chrome, and ...
Read more >
WebM video support has been added in macOS Big Sur 11.3 ...
WebM files will only play on desktop Safari when running the macOS 11.3 beta 2, and does not work on mobile Safari as...
Read more >
216652 – Safari reports WebM+VP9 support on macOS Big ...
Unless, of course, you think the decoder error is a bug in Safari or macOS. (I should have thought it through more before...
Read more >
WebM file not working? Fix it here! - Wondershare Recoverit
Chrome, Opera, etc support the .webm file. In case you are unable to launch a WebM video file, you should try by installing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found