-
Notifications
You must be signed in to change notification settings - Fork 288
Closed
Description
Package version
6.1.1
Environment
- OS: Android (android 16) / iOS (26)
- Flutter version: 3.38.6
Describe the bug
I am experiencing inconsistent behavior regarding AudioInterruptionMode on both platforms when a native phone call is received during recording:
- Android: The recording fails to pause during an incoming call. The session remains active but captures only silence, ignoring both
AudioInterruptionMode.pauseandAudioInterruptionMode.pauseResumeconfigurations. - iOS: The recording correctly pauses when the call starts, but it fails to resume automatically after the call ends, despite using
AudioInterruptionMode.pauseResume.
Add your record configuration RecordConfig(...)
const config = RecordConfig(
encoder: encoder,
numChannels: 2,
noiseSuppress: true,
echoCancel: true,
autoGain: true,
audioInterruption: AudioInterruptionMode.pauseResume,
);
To Reproduce
Steps to reproduce the behavior:
- Initialize the recorder with the configuration above.
- Start recording on a real device.
- Receive an incoming phone call.
- Answer the call.
- Hang up the call.
Expected behavior
With AudioInterruptionMode.pauseResume, the recorder should:
- Pause automatically when the phone call is answered.
- Resume recording automatically when the call is ended.
Additional context
- On Android, I also tested with
AudioInterruptionMode.pause, but the recording still ignores the interruption and keeps running during the call. - On iOS, the interruption start is detected (it pauses), but the end of the interruption does not trigger the resume.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels