I use this guide : Camera and video control with HTML5
This example work excellent on Google Chrome but i can not make it work on Android webview. I also use permission : android.permission.CAMERA.
1 Answers
Answers 1
Did you remember to add this to your onCreate
WebSettings webSettings = myWebView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setAllowFileAccessFromFileURLs(true); webSettings.setAllowUniversalAccessFromFileURLs(true);
You are probably missing the last two lines in your code.
Here is a working example
0 comments:
Post a Comment