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

Permission Handling Issues in Microphone and Camera Capture Dialogs #8829

Closed
3 tasks
shauryag2002 opened this issue Oct 19, 2024 · 1 comment · Fixed by #8830
Closed
3 tasks

Permission Handling Issues in Microphone and Camera Capture Dialogs #8829

shauryag2002 opened this issue Oct 19, 2024 · 1 comment · Fixed by #8830

Comments

@shauryag2002
Copy link
Contributor

Describe the Bug

These issues are for Sample Test Details page:

  1. In Record audio modal,

    • Recording started timer starts before giving permission of microphone access in browser.
      Image
  2. In Open Camera modal,

    • After blocking access of camera , Empty container is there.
      Image

    • After clicking on Switch button, Camera stuck.

Camera and microphone permissions are not handled correctly. When the user does not grant permission for microphone or camera, the app does not handle the error appropriately, and permission errors are not clearly communicated to the user.

To Reproduce

Steps to reproduce the behavior:

  1. Click on Sample Test in sidebar.
  2. Click on any item's Sample Details.
  3. Go to the Audio Capture dialog or Camera Capture dialog.
  4. Deny the microphone or camera permission prompt.
  5. Observe that the recording timer starts before microphone permission is granted, and after blocking camera access, an empty container appears with the camera freezing upon clicking the switch button.

Expected Behavior

  • In the Record audio modal, the recording timer should start only after the user grants microphone access. If permission is denied, an appropriate error message should be displayed to the user.
  • In the Open Camera modal, if camera access is blocked, a proper error message should be shown instead of an empty container. The camera should not freeze after clicking the Switch button, and a clear message should be displayed if the camera cannot be switched.

Video of Solution :

Record Audio modal:

record_audio.mp4

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Brave
  • Version: 1.71.114
@shauryag2002
Copy link
Contributor Author

I am working on this issue.

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

Successfully merging a pull request may close this issue.

1 participant