Skip to content
Snippets Groups Projects
Commit 4fc6cefc authored by Lance Stout's avatar Lance Stout
Browse files

Use ontrack instead of onaddtrack

parent bbf8d685
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +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.ontrack = 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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment