Closed yuripourre closed 1 year ago
Hi, in your example...
remoteConnection.setRemoteDescription(offer, new SetSessionDescriptionObserver() {
@Override
public void onSuccess() {
System.out.println("done");
// Place here your logic to create the answer:
RTCAnswerOptions answerOptions = new RTCAnswerOptions();
remoteConnection.createAnswer(answerOptions, new CreateSessionDescriptionObserver() {
.......
}
@Override
public void onFailure(String s) {
}
});
Describe the bug I am trying to replicate a JS example using this library following the exact same steps, I can generate and assign both offer and answer but the connection is not established.
To Reproduce Steps to reproduce the behavior:
Expected behavior Channel should be open
Desktop (please complete the following information):
Additional context The code works with two JavaScript peers but not when peerB is Java code.
Original working code (JavaScript): https://github.com/hnasr/javascript_playground/tree/master/webrtc