Partially works

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-11-21 10:57:28 +01:00
parent bec37f82ae
commit c09e08c7fd
2 changed files with 5 additions and 6 deletions

View file

@ -274,10 +274,7 @@ public class CallActivity extends AppCompatActivity {
//we already have video and audio tracks. Now create peerconnections
iceServers = new ArrayList<>();
iceServers.add(new PeerConnection.IceServer("stun:stun.l.google.com:19302"));
//iceServers.add(new PeerConnection.IceServer("turn:mario:mario@172.104.225.9:3478"));
//iceServers.add(PeerConnection.IceServer.builder("http://172.104.225.9:3478").setUsername("mario").setPassword
// ("mario").createIceServer());
iceServers.add(new PeerConnection.IceServer("stun:stun.nextcloud.com:443"));
//create sdpConstraints
sdpConstraints = new MediaConstraints();

View file

@ -153,10 +153,12 @@ public class PeerConnectionWrapper {
EventBus.getDefault().post(new SessionDescriptionSendEvent(peerConnection.getLocalDescription(), sessionId,
peerConnection.getLocalDescription().type.canonicalForm(), null));
} else {
if (peerConnection.getRemoteDescription() != null) {
drainIceCandidates();
sendLocalCandidates();
}
}
}
};