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

Android Webview can not play view in Vimeo #951

Open
KirylAkulich1 opened this issue Oct 2, 2023 · 10 comments
Open

Android Webview can not play view in Vimeo #951

KirylAkulich1 opened this issue Oct 2, 2023 · 10 comments

Comments

@KirylAkulich1
Copy link

Expected Behavior

Video should be played

Actual Behavior

video is not played.

Steps to Reproduce

Play video in web view. Literally few days ago videos worked well but now videos can not be played. Played only when user mute/unmute video.

@jdreetz
Copy link
Contributor

jdreetz commented Oct 2, 2023

Hi @KirylAkulich1 . Can you provide any more details about the context of this? Android/Webview version? A specific video or any video? Was it autoplay and autoplay stopped working without mute/unmute?

@KirylAkulich1
Copy link
Author

Hi. We have tested on Android 12/13. WebView version - Android System WebView 117.0.5938.60.
Unfortunately I can not provide any videos( It not even started to play. I tried to tap play button, but nothing happened.But If I set MediaPlaybackRequiresUserGesture setting to false - everything works. Do you have any idea why it could happen?

@jdreetz
Copy link
Contributor

jdreetz commented Oct 2, 2023

Was the same code working previously in earlier versions of the Webviews? What does you code look like?

@KirylAkulich1
Copy link
Author

I can reveal some html element properties:

<iframe> has next properties: <iframe src="some_src" frameborder="0" allow="autoplay; fullscreen" allowfullscreen="" title="some_title"></iframe>

@KirylAkulich1
Copy link
Author

I have not updated web view. Previously video played correctly. Previously MediaPlaybackRequiresUserGesture flag was not used.

@jdreetz
Copy link
Contributor

jdreetz commented Oct 2, 2023

Are you able to see any debug information from the page loaded in the Webview? Like do you see any Javascript errors in the Javascript console for the page?

@KirylAkulich1
Copy link
Author

Yes I am.
I do not see any specific errors.
image
I get some errors if try to drag progress bar
image

@KirylAkulich1
Copy link
Author

I have found a way to demo a problem:

Screen.Recording.2023-10-03.at.11.37.31.mov

Video plays only when it is muted. Code to reproduce https://codepen.io/KirylAkulich1/pen/WNLgzBK

@KirylAkulich1
Copy link
Author

KirylAkulich1 commented Oct 3, 2023

I have found an interesting thing about playsinline=0&amp; parameter. If I remove it then video is played fine in full/inline modes.
So what we have now: If playsinline=0&amp; is present in video url then video is played only if MediaPlaybackRequiresUserGesture is set to false in WebView settings. If playsinline=0& is not present then is played.

@jdreetz
Copy link
Contributor

jdreetz commented Oct 19, 2023

I have found an interesting thing about playsinline=0&amp; parameter. If I remove it then video is played fine in full/inline modes. So what we have now: If playsinline=0&amp; is present in video url then video is played only if MediaPlaybackRequiresUserGesture is set to false in WebView settings. If playsinline=0& is not present then is played.

Hey @KirylAkulich1, thanks for reporting this issue. I've added a ticket to our internal system to investigate. We'll reply to this issue when we have updates. Thanks!

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

No branches or pull requests

2 participants