W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > July 2017

Re: [webrtc-pc] Add legacy note about addStream.

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Wed, 05 Jul 2017 16:23:52 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-313154088-1499271829-sysbot+gh@w3.org>
if we do it then write it like this
```
RTCPeerConnection.prototype.addStream = function(stream) {
  var pc = this;
  stream.getTracks.forEach(function(track) {
    pc.addTrack(track, stream);
  });
};
```
as a pre class="example highlight"?

-- 
GitHub Notification of comment by fippo
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/pull/1451#issuecomment-313154088 using your GitHub account
Received on Wednesday, 5 July 2017 16:23:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:21:40 UTC