flutter_sound
flutter_sound copied to clipboard
[HELP]: incoming voice/video call doesn't close the audio session!
how to handle recorder state and close audio session when phone ringing for incoming call or video call for example if I start recording and suddenly someone call me from WhatsApp the recoder won't stop even if I answer on the call it's keep recording without close the audio session! here it's my config for open audio session:
await myRecorder!.openAudioSession(
focus: AudioFocus.requestFocusAndStopOthers,
category: SessionCategory.playAndRecord,
mode: SessionMode.modeDefault,
device: AudioDevice.speaker,
audioFlags: outputToSpeaker | allowBlueToothA2DP | allowAirPlay,
);
Perhaps you can look to the audio_session plugin.
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.