gree / unity-webview

zlib License
2.29k stars 691 forks source link

Can't access Camera and Mic permission in Android 11 , Unity 2021 #1114

Open SadevK95 opened 5 hours ago

SadevK95 commented 5 hours ago

Hi, I'm trying to load video meeting URl on the webview. But unable to access the Camera and Mic. I tried below workarounds, But still unable to access the camera and mic

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

https://github.com/gree/unity-webview/issues/710

Please note that as mentioned here https://github.com/gree/unity-webview/issues/710#issuecomment-951197993 cannot findAssets/Plugins/Android/core-1.6.0.aar.tmpl. instead of that there are 3 .aar files namely core-1.6.0.aar, WebViewPlugin-development.aar and WebViewPlugin-release.aar

Please support me to sort this out.

KojiNakamaru commented 3 hours ago

Please note that as mentioned here #710 (comment) cannot findAssets/Plugins/Android/core-1.6.0.aar.tmpl. instead of that there are 3 .aar files namely core-1.6.0.aar, WebViewPlugin-development.aar and WebViewPlugin-release.aar

If you have *.aar files, you seem to utilize any older version of this plugin. It is better to remove previously imported files and to utilize Package Manager.

I put an example to demonstrate camera/microphone access below, which runs correctly on my Android 11 device. As in this example, you need to request permissions and to call SetCameraAccess/SetMicrophoneAccess adequately.

https://github.com/gree/unity-webview/commits/example-for-114-android-camera-and-microphone-access/

SadevK95 commented 56 minutes ago

@KojiNakamaru Thanks a lot for prompt replying. I just downloaded the plugin from https://github.com/gree/unity-webview this Github page. Is there any place to get the latest version of this Plugin? What should I remove and keep among below .aar files

core-1.6.0.aar WebViewPlugin-development.aar WebViewPlugin-release.aar

Thanks a lot