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

Microphone icon does not go away on browser when user stops recording #255

Closed
austinlee1993 opened this issue Dec 10, 2023 · 1 comment
Closed

Comments

@austinlee1993
Copy link

Package version
4.4.4

Environment

  • OS: MacOS/Windows
  • Browser: All browsers, chrome/safari

Describe the bug

When I check whether or not the user has granted permission of the microphone on browser, when the user accepts and begins recording, the microphone icon appears on the browser showing that is in use. However, when the user stops recording, the microphone does not disappear, giving the user the perception that the microphone is in use.

This bug only appears when I surround the recording action by checking or not whether the user has granted permission in
await audioRecord.hasPermission()

Add your record configuration RecordConfig(...)

To Reproduce
// error appears when I wrap the start function by checking for permission

void dispose() {
audioRecord.dispose();
super.dispose();
}

if (await audioRecord.hasPermission()) { await audioRecord.start(); }

String? path = await audioRecord.stop();

Expected behavior

Red Mic Icon should go away when user stops recording audio - see video on how the red mic icon does not go away

RPReplay_Final1702184714.mov

Additional context

Add any other context about the problem here.

@llfbandit
Copy link
Owner

This should be fixed in v5. v4 is not supported anymore.

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