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

Mic Icon not properly disappearing when audioRecord checks for permission from browser #260

Closed
austinlee1993 opened this issue Dec 15, 2023 · 4 comments

Comments

@austinlee1993
Copy link

Package version
5.0.1

Environment

  • OS: Mac
  • Browser: Chrome, Safari

Describe the bug
When I add the check for permission (from the browser) before I start recording, the browser still says I'm using the mic icon even when I'm done recording, using the microphone. When I remove the check for permission, the browser correctly releases the mic, hence I believe the issue is with the checking for permission

Config I use for Chrome: const RecordConfig(encoder: AudioEncoder.opus)

To Reproduce
Code I use in the demo (video attached) - this functions fire when I press record

Code Snippet: https://goonlinetools.com/snapshot/code/#yi5r5r19xzlc609ctycjh5

Video: https://github.com/llfbandit/record/assets/8631395/5d03d875-5fa8-4d6b-b0b9-162cb5ec79ca

Expected behavior

The mic should disappear from the browser when the recording is done

Additional context

Add any other context about the problem here.

@llfbandit
Copy link
Owner

Thanks for the report.
Fixed in record_web 1.0.4.

@austinlee1993
Copy link
Author

@llfbandit appreciate the quick response! Can you show me the implementation of a recorder instance in recorder_web? It seems in the repo it says go to the "main record package" but the web directory in the example directory just has html instead of dart code

@llfbandit
Copy link
Owner

record_web is a transitive dependency you get from record. Just upgrade your own pubspec.

@austinlee1993
Copy link
Author

@llfbandit - looks like its working well on my end after a few flutter cleans/remove and reinstalling!
It does however, seem to load a bit slow for the recording function to initialize on Safari (I'm using a default const RecordConfig() in the start method instead of RecordConfig(encoder: AudioEncoder.opus) for Chrome) - but the mic issue now disappears when I stop recording -- thanks!

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