I have simple webview for apprtc, but front camera is not running and not permission allow access camera. Build in eclipse ADT.
Sample code MainActivity onpermissionrequest :
mainWebView.setWebChromeClient(new WebChromeClient(){
// Need to accept permissions to use the camera
@Override
public void onPermissionRequest(final PermissionRequest request) {
L.d("onPermissionRequest");
request.grant(request.getResources());
}
});
note : L error, I am not understand L function?? help for use sample code....
Thanks in advance
您要使用Log.d("....");
L代表棒棒糖...并为lolipop android sdk工作...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.