mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Fix candidates format
This commit is contained in:
parent
0efd15deaa
commit
a5061dd7ef
@ -92,9 +92,16 @@ document.addEventListener("userLeftCall", (e) => {
|
||||
|
||||
document.addEventListener("newCallSignal", (e) => {
|
||||
const detail = e.detail
|
||||
let signal = detail.data
|
||||
|
||||
// Fix candidate format
|
||||
if(signal.hasOwnProperty("candidate"))
|
||||
signal = {
|
||||
candidate: signal
|
||||
}
|
||||
|
||||
if(OpenConversations.has(detail.callID))
|
||||
OpenConversations.get(detail.callID).NewSignal(detail.peerID, detail.data)
|
||||
OpenConversations.get(detail.callID).NewSignal(detail.peerID, signal)
|
||||
});
|
||||
|
||||
document.addEventListener("callPeerReady", (e) => {
|
||||
|
Loading…
Reference in New Issue
Block a user