react-native-webrtc / react-native-incall-manager

Handling media-routes/sensors/events during a audio/video chat on React Native
ISC License
555 stars 193 forks source link

Loudspeaker is not turning on #175

Open sagark1510 opened 2 years ago

sagark1510 commented 2 years ago

Hello,

I've just used this InCallManager.start({media: 'video'}) to start the video call.

For some reason it is not turning on the loudspeaker by default if there is no headset attached with the phone. This is happening on iOS.

What can be the issue? I don't want to use setForceSpeakerphoneOn method as it will block headset as well.

Any help would be appreciated.

Romick2005 commented 2 years ago

Is there any other libraries that use AVAudioSession like video player or microphone/video recording stuff? Also it might be a camera and microphone permission issue, but that could happen only ones, until user allow to use camera and microphone.

sagark1510 commented 2 years ago

@Romick2005 yeah there is possibility that video player is running.

Romick2005 commented 2 years ago

@sagark1510 Can you please check if my forked version has the fix for your problem?

sagark1510 commented 2 years ago

@Romick2005 Sure I'll give it a try. Thanks.

anujraghuvanshi commented 1 year ago

It's yet not working. Anybody got any solution ?