How to update from addStream to addTrack correctly?
<p>I am using <a href="https://github.com/webrtc/adapter" rel="noreferrer">webrtc-adapter</a> v2.0.8, when I update my codes from</p>

<pre><code>this.peerConnection.addStream(this.myStream);
</code></pre>

<p>to</p>

<pre><code>this.myStream.getTracks().forEach(track =&gt; this.peerConnection.addTrack(track, this.myStream));
</code></pre>

<p>based on the <a href="https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack" rel="noreferrer">demo</a>. 
I got the error</p>

<blockquote>
  <p>getUserMedia:  TypeError: _this.peerConnection.addTrack is not a
  function</p>
</blockquote>

<p>in my browser (Chrome 56.0.2906.0 dev) console.</p>

<p>How can I use <code>addTrack</code> correctly? Thanks</p>