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

Starting a video recording with the global mic toggle off results in an error #448

Open
matchboxbananasynergy opened this issue Jul 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@matchboxbananasynergy
Copy link

This seems to be reproducible on both v68 and v69, so it doesn't seem to be something that was introduced in the last version.

If you have the global mic toggle off and start a video recording, the recording will crash a few seconds in with "Error 4". Keep in mind tha this happens even if you choose to unlock the mic when prompted after pressing record.

If the global mic toggle is on before starting to record a video, it works fine.

@matchboxbananasynergy matchboxbananasynergy added the bug Something isn't working label Jul 23, 2024
@ZaraPhu
Copy link

ZaraPhu commented Aug 26, 2024

Chiming in here, I was able to reproduce this issue in the latest stable build (version 74) of the Camera app.

Steps to reproduce:

  1. Open the Camera app, and navigate to shoot a video
  2. Turn off the global microphone permissions
  3. Hit record
  4. You can either allow or deny the request from the permissions pop up, it does not alter the result

The camera app then halts the recording and produces an error message:
"An error has occurred finishing the current recording, error code: 4".
It still saves the recording before the error message appears into the camera roll.

It should be noted that whether the camera permissions are on or off, there is no change in the result. The microphone access being off seems to be the key component causing the error.

@MHShetty
Copy link
Member

The described error seems to be occurring because the camera app/activity goes in background when the system's unblock mic dialog shows up

@MHShetty
Copy link
Member

There's no way for the application to know that the application has been paused due to this dialog (or read the global mic state), but we could figure a way to deal with this while fully implementing persistent recording to support recording in background in the near future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants