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

Unexpected behaviour: can't play/pause audio using headphones after starting and stopping recording #391

Open
bartolomej opened this issue Aug 28, 2024 · 0 comments

Comments

@bartolomej
Copy link

Package version

  • record: 5.1.2
  • audio_service: 0.18.15

Environment

  • OS: IOS

Describe the bug

I'm using audio service lib to play audio and receive play/pause events. It all works as expected, but once I start (and later stop) recording using recorder library, the play/pause events are not received anymore. And that's even after I dispose of the recorder (call _audioRecorder.dispose()).

To Reproduce

Here is a reproducible example (hit the microphone button to start recording, and then hit it again to stop recording): https://github.com/bartolomej/audio-service-headset-controls-example

Expected behavior

I would expect the play/pause events to be received even if the audio is being recorded (or a configuration option that allows that). Note that I can play the audio while recording, but only by calling play/pause explicitly on the audio player, and not by using the headphone controls.

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

1 participant