Closed cofirazak closed 7 months ago
the Flutter app has its own features for working with audio after establishing the audio session. if you use the flutter_webrtc for calls, you can try to configure the audio session using its tools. for it, you can call
Helper.setAppleAudioConfiguration(AppleAudioConfiguration(
appleAudioCategory: AppleAudioCategory.playAndRecord,
appleAudioCategoryOptions: {
AppleAudioCategoryOption.allowBluetooth,
AppleAudioCategoryOption.mixWithOthers,
},
appleAudioMode: AppleAudioMode.voiceChat //or AppleAudioMode.videoChat
));
but pay attention, if you select the AppleAudioMode.videoChat
you can't switch between speaker and headphone, and if you select the AppleAudioMode.voiceChat
the default output will be switched to the headphone and you will need to switch to the speaker manually.
try this code immediately after starting the call or after accepting the call.
@TatankaConCube Thank you! That helped me a lot 🎉
First of all, thank you for this package! Great work! 🙏
My problem is the Speaker button – after accepting a call this button is activated by default, and i hear the audio from the speaker. But this button is not clickable – if i tap on it just nothing happens even in logs, so i can't turn the speaker off. By the way the Mute button works as expected.
Any ideas why could that happen, and how to fix this?