add webrtc logging

This commit is contained in:
Connor Turland 2016-10-17 22:59:28 -04:00
parent fe0da255dd
commit d2e097fd05

View file

@ -76,6 +76,14 @@ const Realtime = {
}, },
nick: Active.Mapper.id nick: Active.Mapper.id
}) })
self.webrtc.webrtc.on('iceFailed', function (peer) {
console.log('local ice failure', peer)
// local ice failure
})
self.webrtc.webrtc.on('connectivityError', function (peer) {
console.log('remote ice failure', peer)
// remote ice failure
})
var $video = $('<video></video>').attr('id', self.videoId) var $video = $('<video></video>').attr('id', self.videoId)
self.localVideo = { self.localVideo = {