Some videos don't play in webview, but play in Chrome sometimes #6636
Replies: 3 comments 2 replies
-
This definitely seems to be an Android System WebView issue. I'm seeing very similar things to you in a NativeScript app, and rolling back the WebView from the play store fixes the issue. Obviously not a fix, but the only way we can get certain videos to play again. |
Beta Was this translation helpful? Give feedback.
-
update: After some more investigation, I found out that webview doesn't actually switch the source if this happens (which usually fixes the issue), because source doesn't throw any error. It seems just that the video is stuck buffering. Here's an investigation report and how I eventually "fixed" it: Video stuck investigationTested on Chromebook in Opera for Android, which also reproduces the bug. (Firefox reports error and correctly switches variant, SA app is not debuggable easily, Chrome works without a bug) Here's how the html video element behaves when the bug reproduces: events that still fire: events that don't seem to fire:
other events:
properties that match
other properties on video that are not a match
possible solutions
Conclusion Reliable state to look at
We will go with the 1st solution option for now
|
Beta Was this translation helpful? Give feedback.
-
@panstromek Did you solve this issue somehow? I am currently experiencing a very similar issue and it feels like the videos randomly get stuck somewhere because sometimes they load, sometimes they don't. As long as I am running the app as a non-compiled production version it's always working but as soon as I run I think I solved the issue for myself by setting |
Beta Was this translation helpful? Give feedback.
-
Hi, I've been hunting a strange bug, where some videos (included via html video element) don't play on some Android devices. I'm pretty much desparate, we're getting bad reviews for this, but the problem is somewhere in the system where we have no control over it.
Trying to gather if somebody else encountered similar problem.
Investigation so far:
The video doesn't load, video element throws "NotSupportedError" with no other information
It happens on
First user reported that this started happening some time around April 12.
Affects videos system-wide in some way, sometimes
Affects only some videos
All videos are h264, yuv420p, AAC, should be supported by pretty much any device
The only pattern that seems to hold is video height
I tried to fix this by adding second source tags under the video, with 480p variant (instead of the default 720p)
Hypothesis
1. System Update
Since this started happening at some point, I suspect some broken system update.
2. Battery/CPU optimization
3. Capacitor problem
Has anybody encountered a similar problem?
Beta Was this translation helpful? Give feedback.
All reactions