mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 11:32:19 +00:00
Always log ICE change on client
This commit is contained in:
parent
d73a7be9f3
commit
de5a48ded7
@ -10,9 +10,9 @@ startPeerConnection = () => {
|
||||
// On connection change, change indicator color
|
||||
// if connection failed, restart peer connection
|
||||
peerConnection.oniceconnectionstatechange = e => {
|
||||
console.log("ICE connection state changed, " + peerConnection.iceConnectionState)
|
||||
switch (peerConnection.iceConnectionState) {
|
||||
case "disconnected":
|
||||
console.log(peerConnection.iceConnectionState)
|
||||
document.getElementById("connectionIndicator").style.fill = "#dc3545"
|
||||
break
|
||||
case "checking":
|
||||
@ -28,9 +28,6 @@ startPeerConnection = () => {
|
||||
peerConnection = null
|
||||
setTimeout(startPeerConnection, 1000)
|
||||
break
|
||||
default:
|
||||
console.log(peerConnection.iceConnectionState)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user