-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
BugFix: iOS audio ouptut switching when toggling mic #1285
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
With this change it doesn't give option to choose earpiece it defaults to speaker on ios call-kit call 👎🏻 |
@cloudwebrtc @shivanshtalwar I am trying an alternative solution which can solve these, by resetting the audio routing based on the last used state as well as looking if it use video communication or not. Maybe add a forcefull over ride option as well. Does these seems like good option to you? |
* dev: (37 commits) release: 0.9.24. Update flutter_webrtc.podspec avaudiosession mode changed to AVAudioSessionModeVideoChat (flutter-webrtc#1285) fix: eventSink is null program crash (flutter-webrtc#1281) Fix: After the window is closed, the old source still exists (flutter-webrtc#1279) Code format and follow google C++ style (flutter-webrtc#1280) release: 0.9.23. update dll/so for windows and linux. release: 0.9.22. fix: Without any setActive for rtc session, libwebrtc manages the session counter by itself. (flutter-webrtc#1266) Fix/remove-rtp-sender-dispose (flutter-webrtc#1267) OCT update fix (flutter-webrtc#1262) fix video renderer issue for safari. (flutter-webrtc#1265) dart_webrtc update to 1.0.15. release: 0.9.21. more fix. bug fix for windows. Fixed frame capturer returning images with wrong colors (flutter-webrtc#1258) release: 0.9.20. feat: add getCapabilities/setCodecPreferences methods. (flutter-webrtc#1251) ...
@rajansurani on the dart side how can we override it? |
Still haven't got a perfect solution for both cases but probably shaning the mode of audio session when changing with Helper.speakerPhone could be an option. |
looks like this implementation has been removed so be aware of this change |
This is a PR to fix for Issue #1284.
Choosing a
AVAudioSessionModeVideoChat
as mode while usingPlayAndRecord
solves the issue of audio being switched to earpiece once the mic is toggled on and vice-versa.