I use WebView on the Android app to run the local html5 code.
I can't play video.
I tried using html5WebView, but it didn't work.
Does anyone know how to play html5 video on WebView?
The video is stored locally.
The Android version is expected to be 4.2 or higher.
Thank you for your cooperation.
android html5 webview
Is there a possibility that PluginState is not turned on?Write a code similar to the one below and turn on Plugin to view the web page containing the video tag.
if(Build.VERSION.SDK_INT<8){
webview.getSettings().setPluginsEnabled(true);
} else{
webview.getSettings().setPluginState(PluginState.ON);
}
© 2024 OneMinuteCode. All rights reserved.