Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

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

Open
rainmanhhh opened this issue Dec 26, 2020 · 0 comments

Comments

@rainmanhhh
Copy link

在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)
    }

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant