I am getting this error when I addICECandidate
var candidate = new RTCIceCandidate({sdpMLineIndex:message.label,
candidate:message.candidate});
pc.addIceCandidate(candidate);
My candidate is forming correctly still I am getting this error.
Error is: Failed to execute 'addIceCandidate' on 'RTCPeerConnection': The ICE candidate could not be added.
My issue is while creating offer pc.createOffer(setLocalAndSendMessage, onSignalingError, sdpConstraints); here nothing happens neither setLocalAndSendMessage is called neither onSignalingError thats why later on candidate could not be added.