Skip to content Skip to sidebar Skip to footer

Android HTML5 Video In WebView

I am attempting to play an HTML5 video within my WebView app. It works as expected on every device I have tested that is running Android 5.x, but does not work on any device runnin

Solution 1:

The problem is WebKit poorly handles redirects for videos. There are videos within webpages from my company's proprietary API. When a video is clicked, the call goes to our API, then redirects to Amazon S3 to get the actual video file. WebKit then tries to "chunk" the video (instead of pre-loading the entire thing) as you would expect. However, S3 has already done that, which causes the playback to be completely broken.

Android 5.x works fine because WebView is based upon Chromium starting in 4.4, which handles the redirect appropriately.


Post a Comment for "Android HTML5 Video In WebView"