I am using webrtc-adapter v2.0.8, when I update my codes from
this.peerConnection.addStream(this.myStream);
to
this.myStream.getTracks().forEach(track => this.peerConnection.addTrack(track, this.myStream));
based on the demo. I got the error
getUserMedia: TypeError: _this.peerConnection.addTrack is not a function
in my browser (Chrome 56.0.2906.0 dev) console.
How can I use addTrack
correctly? Thanks