Skip to content
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

No sound when using callkit #35

Closed
zek opened this issue Apr 7, 2019 · 8 comments
Closed

No sound when using callkit #35

zek opened this issue Apr 7, 2019 · 8 comments

Comments

@zek
Copy link

zek commented Apr 7, 2019

I got no sound when I answer with callkit. Do you know why this can be?

Everything works if I use
RNCallKeep.startCall(session.ID, "User", 'generic');

But it doesn't work when I answer from native UI
RNCallKeep.displayIncomingCall(session.ID, user.username, user.username, 'generic', isVideoCall);

The problem is related with this actually.
react-native-webrtc/react-native-callkit#45

Sometimes connection keeps long so I want to show users that it is still connecting but when I do that
no one can hear each other. To solve that I am doing disabling & enabling microphone on receiver. Now caller can hear receiver but receiver can't hear caller. Is there a better way to apply this PR?

@sboily
Copy link
Member

sboily commented Apr 23, 2019

Hello,
Do you have a sample example to reproduce this issue? Are you using react-native-webrtc? We don't reproduce it.

@bmp123
Copy link

bmp123 commented Jun 11, 2019

@saghul @sboily same issue. If I use RNCallKeep.startCall and react-native-webrtc sometimes no sound on ios! If use react-native-webrtc without react-native-callkeep all calls is good. if I invoke startCall method before getUserMedia it work perfectly, but this trick don't work with displayIncomingCall

@danjenkins
Copy link
Collaborator

I have a feeling this has something to do with the fact callkit can disable the webrtc audio session but theres no way to bring it back - we talk about it over in react-native-webrtc/react-native-webrtc#632

@moisesynfam
Copy link

moisesynfam commented Jul 5, 2019

I'm not getting audio either when using the call-kit alongside react-native-pjsip on iOS. Has anyone encountered the same issue using the react-native-pjsip package?

manuquentin pushed a commit that referenced this issue Aug 14, 2019
Wrap rejectCall and answerIncomingCall for iOS
@danjenkins
Copy link
Collaborator

We've just merged in a change that makes this work better once youve upgraded to m75 which is currently in master on rn-webrtc. Not sure about pjsip. I'm going to close this for now. If you still have issues, reopen it

@jason-shen
Copy link

jason-shen commented Nov 7, 2020

can we reopen this?

this issue still happens on the latest ios 14.2, the audio is randomly don't work on the receiver but the caller can hear, but after killing the app all works perfect, has anyone else notice this?

here is my versions

"react-native-webrtc": "^1.84.0",
"react-native-callkeep": "^3.1.1",

@haisamMH
Copy link

callkit microphone disabled on answering the second call, this happend after the latest IOS update

@fukemy
Copy link

fukemy commented Oct 20, 2022

not by the ios, other app work good, I think something wrong with audioSession. Did someone solved this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants