Android WebView not allowed to load local video file
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an application with a WebView showing an HTML file. In the HTML file, there's a button that will request the user to record video, or select a video from his documents folder. Upon selecting (or recording) a video, it calls a javascript function with the link (encoded by Uri) to the video file, which it should then display in a element, by setting it as its source: function showPreview(previewFile){ console.log(previewFile); document.getElementById('previewVideo').src = previewFile; } I'm running into this error and I've been looking