You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android's WebView implementation has problems reproducing Video from the HTML video tag. There doesn't seem to be a straightforward fix for this at the moment using "stock configuration" options from the WebView itself.
Possible solutions I can think of:
Customize our CustomWebViewClient to handle pages that have the HTML video tag and handle the playback in a separate view with a separate native Fragment/Activity. I found this project (older and now unmaintained) that took a stab at this, might be valuable to take inspiration from it
Use the AndroidWebViewBridge interface to stop the HTML video tag from attempting to play the video and instead handle an incoming message from JavaScript that will trigger the video playback using native APIs
At the moment option 2. seems like a better solution in my eyes.
In either case it's important to consider we already have ExoPlayer in the project so we could relatively easy handle the video playback using their PlayerView
Describe the bug
To Reproduce
Screenshots
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: