question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] Needs a way to set/change default audio output path programmatically, speaker to earpiece.

See original GitHub issue

Description: 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chrismcclunecommented, Jul 6, 2022

If I get some time in the near future I will give it a go.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found