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

Unable to access camera and MicroPhone In WebView #333

Closed
suriyaKalidoss123 opened this issue May 3, 2020 · 3 comments
Closed

Unable to access camera and MicroPhone In WebView #333

suriyaKalidoss123 opened this issue May 3, 2020 · 3 comments

Comments

@suriyaKalidoss123
Copy link

Environment

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.19041.207], locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[√] Android Studio (version 3.6)
[√] VS Code (version 1.44.2)
[√] Connected device (1 available)

! Doctor found issues in 1 category.

Description

Expected behavior:
Can able to access camera and microphone ,Video call should be done

Current behavior:
Unable to access the camera and microphone,Video call not done

Steps to reproduce

1.Run the attached sample

Images

Stacktrace/Logcat <!--

logs.txt
-->

Attached Sample:
webview.zip

@pichillilorenzo
Copy link
Owner

Please, refer to this #323 (comment) to have an example.

To ask permission, you can use the permission_handler plugin.
However, my plugin also has the androidOnPermissionRequest for Android, that is an event fired when the WebView is requesting permission to access the specified resources (that is the Android native WebChromeClient.onPermissionRequest event).

@suriyaKalidoss123
Copy link
Author

suriyaKalidoss123 commented Jun 6, 2020

@pichillilorenzo I had tried the above step, but issue exists.

@pichillilorenzo
Copy link
Owner

Please, try to create a new fresh App and use the full code example of #323 (comment).
Add permission_handler: ^5.0.0+hotfix.6 as a dependency to your pubspec.yaml.

Does it work if you use it in a new fresh App??

This was referenced Jul 6, 2020
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