Playing an app local video (.mp4) in a webview

那年仲夏 提交于 2019-12-05 06:27:44

I was stuck in a similar problem. Finalyl I got the thing working by using "video" HTML5 tag

  • There is something in android OS that prevent opening the video from assets. I had to copy the html and video to SDCard. You can then use the sdcard path instead of assets path.
  • Dont forget to use android:hardwareAcceletrated = "true" for your webview activity
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!