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

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

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Thu, 13 Jul 2017 02:25:28 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-314951803-1499912726-sysbot+gh@w3.org>
> I can imagine there's a lot of code that looks like this:
> ```
> stream.addTrack(track);
> if (pc.addTrack) {
>   pc.addTrack(track, stream);
> }
>  ```

@taylor-b then we should ***not*** polyfill automatic addition, or `addTrack` throws `InvalidAccessError`.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/pull/1451#issuecomment-314951803 using your GitHub account
Received on Thursday, 13 July 2017 02:25:34 UTC

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