Can not turn on speaker! (Set loudspeaker)
Anyone luck with video call and turn on speaker. Currently audio ouput is small for video call it seem using earIn
const routes = await RNCallKeep.getAudioRoutes();
console.log('DEBUG routes', routes, uuid);
if (routes && routes.length) {
const route = routes.find((r) => r.type === 'Speaker');
if (route) {
console.log('ACTIVE route', route);
await RNCallKeep.setAudioRoute(uuid, route.name);
}
}
Best regards, Toan
The problem is video call but can not turn on speaker. Anyone has solved this problem? Thank you!
Start call
RNCallKeep.startCall(id, `${user.phone}`, '+84...', 'number', true);
Answer call
RNCallKeep.displayIncomingCall(
data.id,
`${data.caller.phone}`,
`${data.caller.firstName}`,
'number',
true
);
const onAnswerCallAction = (data) => {
let { callUUID } = data;
RNCallKeep.setCurrentCallActive(callUUID);
//RNCallKeep.answerIncomingCall(callUUID);
//RNCallKeep.setAudioRoute(callUUID, 'Speaker');
console.log('answer call', data);
if (!isIOS) {
RNCallKeep.backToForeground();
}
dispatch(accept(callUUID));
};
Hi @tabvn did you resolve the issue?
anybody could fix this problem?
anyone find solution if yes please share here @tabvn
@dragoshuniq @kukadiyaAni @saheemhussainchicmic check out https://github.com/react-native-webrtc/react-native-incall-manager This was a solution for me -- although I am still having some inconsistencies with some edge cases (eg when a call is in progress, the volume control doesn't work on Android)
Hi, @glesperance I am also trying the plugin mentioned by you. Yet it's not working for me. Can you please share all things you did to make it work?