Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SadevK95 opened this issue Nov 8, 2024 · 3 comments
Open

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

SadevK95 opened this issue Nov 8, 2024 · 3 comments

Comments

@SadevK95
Copy link

SadevK95 commented Nov 8, 2024

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

#710

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

Please support me to sort this out.

@KojiNakamaru
Copy link
Member

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
Copy link
Author

SadevK95 commented Nov 8, 2024

@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

@SadevK95
Copy link
Author

SadevK95 commented Nov 8, 2024

@KojiNakamaru Thanks a lot. Issue is fixed :D

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

No branches or pull requests

2 participants