I noticed that in Canary 26.0.1410.0 that webkitRTCPeerConnection.onicecandidate callbacks no long emit events that are missing the candidate object to notify the app that candidate gathering is complete.
I've started using this to detect gathering complete:
var pc = new webkitRTCPeerConnection(pc_config, pc_constraints);
pc.onicecandidate = this._onIceCandidate;
pc.ongatheringchange = function(event){
if(event.currentTarget.iceGatheringState === "complete"){
console.log("Ice Gathering complete");
this.emitSignalingMessage({target: this.get('currentTarget'), type: 'icefinished'}); //Do your custom logic
}
}
Is this right? It works, I'm just curious if this will change, or if I should actually be testing something else on that event.
Thanks,
Bryan