mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Partially works
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
bec37f82ae
commit
c09e08c7fd
@ -274,10 +274,7 @@ public class CallActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
//we already have video and audio tracks. Now create peerconnections
|
//we already have video and audio tracks. Now create peerconnections
|
||||||
iceServers = new ArrayList<>();
|
iceServers = new ArrayList<>();
|
||||||
iceServers.add(new PeerConnection.IceServer("stun:stun.l.google.com:19302"));
|
iceServers.add(new PeerConnection.IceServer("stun:stun.nextcloud.com:443"));
|
||||||
//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());
|
|
||||||
|
|
||||||
//create sdpConstraints
|
//create sdpConstraints
|
||||||
sdpConstraints = new MediaConstraints();
|
sdpConstraints = new MediaConstraints();
|
||||||
|
@ -153,8 +153,10 @@ public class PeerConnectionWrapper {
|
|||||||
EventBus.getDefault().post(new SessionDescriptionSendEvent(peerConnection.getLocalDescription(), sessionId,
|
EventBus.getDefault().post(new SessionDescriptionSendEvent(peerConnection.getLocalDescription(), sessionId,
|
||||||
peerConnection.getLocalDescription().type.canonicalForm(), null));
|
peerConnection.getLocalDescription().type.canonicalForm(), null));
|
||||||
} else {
|
} else {
|
||||||
drainIceCandidates();
|
if (peerConnection.getRemoteDescription() != null) {
|
||||||
sendLocalCandidates();
|
drainIceCandidates();
|
||||||
|
sendLocalCandidates();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user