[iOS] Needs a way to set/change default audio output path programmatically, speaker to earpiece.
See original GitHub issueDescription: We are using Jitsi meet iOS SDK in one of our iOS App. But the problem is audio output is always routed to the speaker instead of the earpiece. We can’t override this behavior and this audio output path needs to be set programmatically. We are somehow stuck with this problem. And also callkit UI speaker button is not working, it is always open in speaker mode. We are building an Android app using Jitsi Meet SDK as well.
Want a solution like the below:
We need an endpoint or api or any option inside for iOS llike below
JitsiMeetConferenceOptions.fromBuilder { builder in
builder.audioOutput = .speaker / .phone
}
for Android like below
JitsiMeetConferenceOptions defaultOptions
= new JitsiMeetConferenceOptions.Builder()
.setFeatureFlag("audioOutput", “.speaker / .phone”)
.build();
is there any way to set audio output to the earpiece?
Any probable solution for this? Please give us some hints. Thanks in advance
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:14 (5 by maintainers)
Top Results From Across the Web
overrideOutputAudioPort(_:) | Apple Developer Documentation
PortOverride.speaker option causes the system to route audio to the built-in speaker and microphone regardless of other settings. This change remains in effect ......
Read more >Change AVAudioPlayer output to speaker in Swift?
Is there a way to change from speaker to built-in earpiece. I'm working on audio call but by default it's on speaker and...
Read more >Any way to change sound output device via Applescript or shell?
audiodevice <port> <device> set the selected port to use the designated device ("internal" will select Internal Speakers or Headphones, ...
Read more >Set Audio Device options in Skype for Business
Learn how to set up and use a headset, the built-in microphone and speakers on your computer, or another device for Skype for...
Read more >How to add audio device action sheet to your iOS app - Stephen
Headphones : whenever any headphones plugged in, it becomes the default audio route even there is also bluetooth device. And it overwrites the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same answer as https://github.com/jitsi/jitsi-meet/issues/9639#issuecomment-1176092744
If I get some time in the near future I will give it a go.