Skip to content
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] Linux Playwright Webkit engine doesn't allow video.play() #2449

Closed
pawelngei opened this issue Jun 3, 2020 · 0 comments · Fixed by #3121
Closed

[BUG] Linux Playwright Webkit engine doesn't allow video.play() #2449

pawelngei opened this issue Jun 3, 2020 · 0 comments · Fixed by #3121
Assignees

Comments

@pawelngei
Copy link

Context:

  • Playwright Version: 0.13.0
  • Operating System: Linux
  • Node version: 10.20.1
  • Browser: Webkit
  • Extra: Doesn't exist on MacOS

Code Snippet

Unhandled Rejection (NotSupportedError): The operation is not supported.
(anonymous function)
src/molecules/Video/Video.tsx:23
  20 | useEffect(() => {
  21 |   const videoElement = videoRef.current
  22 |   if (inView) {
> 23 |     videoElement?.play()
  24 |   } else {
  25 |     videoElement?.pause()
  26 |   }

Describe the bug

Linux version of Playwright Webkit engine doesn't support video.play() in JS. The same video is easily played by an actual Safari (13.1.1) and MacOS version of Playwright thanks to playsInline attribute on <video />.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants