I have initiated an offer from iOS build and tried to connect on the other side android build, Call was connected successfully but Peers were unable to listen each others audio. I am not sure where I am committing mistake. Reply will be appreciated.
RN : 0.59.9
react-native-webrtc : 1.67.1
React : 16.8.6
"{"active":true,"_tracks":[{"_enabled":true,"id":"CC75D414-177F-45F2-B444-B647E12933A5","kind":"audio","label":"CC75D414-177F-45F2-B444-B647E12933A5","muted":false,"readonly":true,"remote":false,"readyState":"live"}],"id":"4D60CB66-26D3-4198-9183-F3ED0D49C7F6","reactTag":"4D60CB66-26D3-4198-9183-F3ED0D49C7F6"}"
The code for constraints are down below:
const getLocalStream = () => {
let constrains = {
audio: true,
video: false
};
let getStream = stream => {
join("SWN");
localStream = stream;
appClass.setState({
streamURL: stream.toURL(),
status: 'ready',
info: 'Calling...',
});
};
getUserMedia(constrains, getStream, logError);
};