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

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

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Thu, 13 Jul 2017 13:47:50 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-315082776-1499953668-sysbot+gh@w3.org>
@jan-ivar Oh, you mean this code will start failing once Chrome does implement `addTrack`? Then replace it with:

```
if (chrome) {
  stream.addTrack(track);
} else {
  pc.addTrack(track, stream);
}
```

I'm not an application developer myself, I'm not sure what people do most often.

But my point is, it's behavior that's been around for a long time, which we _will_ need to help people migrate off of. If you don't think it should be mentioned in the note here, that's fine; I just wanted to call it out in case people were unaware of it.

-- 
GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/pull/1451#issuecomment-315082776 using your GitHub account
Received on Thursday, 13 July 2017 13:47:56 UTC

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