Browse Source

Add support for trickle candidates.

This is option "full_trickle" in Janus.

Signed-off-by: Joachim Bauch <bauch@struktur.de>
pull/5646/head
Joachim Bauch 4 years ago
committed by Joas Schilling
parent
commit
2a702c6da1
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 9
      docs/Talkbuchet.js

9
docs/Talkbuchet.js

@ -349,6 +349,15 @@ class Peer {
}
}
this.signaling.addEventListener('message', event => {
const message = event.detail
if (message.data.type === 'candidate' && message.data.from === this.sessionId) {
const candidate = message.data.payload
this.peerConnection.addIceCandidate(candidate.candidate)
}
})
this.connectedPromiseResolve = undefined
this.connectedPromiseReject = undefined
this.connectedPromise = new Promise((resolve, reject) => {

Loading…
Cancel
Save