gree / unity-webview

zlib License
2.27k stars 687 forks source link

WebContentsDelegate::CheckMediaAccessPermission: Not supported. #679

Open gushenjie opened 3 years ago

gushenjie commented 3 years ago

<?xml version="1.0" encoding="utf-8"?>

gushenjie commented 3 years ago

target version 22

KojiNakamaru commented 3 years ago

Please check https://github.com/gree/unity-webview/tree/a11f2c2dff17feb9ebbed5beb81721ca5d5db348#cameraaudio-permissionfeature

chorchannaseang commented 3 years ago

D/EGL_emulation(15675): eglCreateContext: 0xbc20fa50: maj 2 min 0 rcv 2 E/chromium(15675): [ERROR:web_contents_delegate.cc(225)] WebContentsDelegate::CheckMediaAccessPermission: Not supported. E/chromium(15675): [ERROR:web_contents_delegate.cc(225)] WebContentsDelegate::CheckMediaAccessPermission: Not supported. W/cr_media(15675): Requires MODIFY_AUDIO_SETTINGS and RECORD_AUDIO. No audio device will be available for recording

KojiNakamaru commented 3 years ago

Thank you for the report. I searched the issue again and fixed the build script in #731 . Could you please try the latest? Please also note that the latest version requires webViewObject.SetCameraAccess(true) and/or webViewObject.SetMicrophoneAccess(true) for reflecting the discussion #726 .

https://github.com/gree/unity-webview/tree/79e95933c8a39cfb022b676c25190603601f13e3#cameraaudio-permissionfeature

AbdurRehman-coder commented 1 year ago

Hey @KojiNakamaru, I add both MODIFY_AUDIO_SETTINGS and RECORED_AUDIO permissions but still getting the same issue as @chorchannaseang. Please help me out.

KojiNakamaru commented 1 year ago

How do you add those flags? Do you perform all described at https://github.com/gree/unity-webview/tree/d41c7927eb72ba450e04583c5b77f9a2d6f00a7d#cameraaudio-permissionfeature ?