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] Audio sometimes doesn't work when used with WebRTC connection

See original GitHub issue

HI.

I’m building an app and have some issue. Here is my scenario.

// Establish WebRTC Connection
InCallManager.start({ media: 'video', auto: true });
// Communicate through RTC Connection

// After all communications done
InCallManager.stop();

// Re-establish WebRTC Connection 
InCallManager.start({ media: 'video', auto: true });

Here is problem. When I re-establish the connection and start InCallManager again, the Audio doesn’t works at all, i.e. Mic input and Speaker output.

My assumption is due to IOS AVAudioSession, because WebRTC assumes that it’s the only one controls AVAudioSession which is implemented as a singleton.

Am I right? and how can I fix it? (or do you have any plan for fixing it?)

React-Native-IncallManager Version : v3.3.0 libWebRTC : M84

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:11
  • Comments:13

github_iconTop GitHub Comments

10reactions
jsellamcommented, Jan 19, 2021

I have the same issue. When I start a second call after close the first, I don’t have sound…

1reaction
josefhacommented, Apr 21, 2021

@jsellam we have exactly this problem as well, anyone has an update on solutions/workarounds?

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS 15 Safari WebRTC Issue | Apple Developer Forums
We're encountering an issue on the iOS 15 Beta when establishing a WebRTC connection through Safari, where we are not receiving the remote...
Read more >
180748 – Audio sometimes fail to capture in WebRTC
Steps to reproduce: 1. On an iPad, go to https://webrtc.github.io/samples/ 2. Select sample "Audio-only getUserMedia() output to local audio ...
Read more >
iOS Audio not working during call answered when phone is ...
As I mentioned, I am using WebRTC for calling. If I exchange the media streams after the user answers the call( still on...
Read more >
iOS audio device layer failure with bluetooth headset - webrtc
Use a bluetooth headset on an iPhone 6S with WebRTC @ ... I have assigned the issue to myself but will not be...
Read more >
Ios, audio output management problem - React Native WebRTC
And if there is a bluetooth connection, switch audio on the bluetooth device. For that I use react-native-incall-manager, on android everything ...
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