apprtc icon indicating copy to clipboard operation
apprtc copied to clipboard

Android weview打开测试页面https://apprtc.webrtcserver.cn提示NotAllowedError

Open rainmanhhh opened this issue 4 years ago • 0 comments

在webview中打开测试页面https://apprtc.webrtcserver.cn,提示“Failed to get access to local media. Error name was NotAllowedError. Continuing without sending a stream.”

我已经在自定义的WebChromeClient中自动授权:

override fun onPermissionRequest(request: PermissionRequest) {
      Log.d(TAG, "onPermissionRequest: url=${request.origin}, perms=" + Arrays.toString(request.resources))
      request.grant(request.resources)
    }

手机设置里面也显示摄像头、录音、修改音频设置等几个权限都是打开的

rainmanhhh avatar Dec 26 '20 10:12 rainmanhhh