Monday, September 26, 2016

Camera and video control with HTML5 form android webview

Leave a Comment

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

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment