diff --git a/rtcpeerconnection.js b/rtcpeerconnection.js index aecc782616bad9beb72e7e5b757d7743b9b2450d..364e4496fd4919894f61db4482f285f738e33330 100644 --- a/rtcpeerconnection.js +++ b/rtcpeerconnection.js @@ -161,6 +161,7 @@ function PeerConnection(config, constraints) { this.pc.onremovestream = this.emit.bind(this, 'removeStream'); this.pc.onremovetrack = this.emit.bind(this, 'removeTrack'); this.pc.onaddstream = this.emit.bind(this, 'addStream'); + this.pc.onaddtrack = this.emit.bind(this, 'addTrack'); this.pc.onnegotiationneeded = this.emit.bind(this, 'negotiationNeeded'); this.pc.oniceconnectionstatechange = this.emit.bind(this, 'iceConnectionStateChange'); this.pc.onsignalingstatechange = this.emit.bind(this, 'signalingStateChange');