- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Mon, 26 Nov 2018 21:00:19 +0000
- To: public-webrtc-logs@w3.org
You probably meant `pc.removeTrack(sender1)` ;) If your point is that the `addTrack`/`removeTrack` API names are terrible, and set up a false symmetry, then 100% agree. This is why I voted to move at least `removeTrack` to the legacy section in https://github.com/w3c/webrtc-pc/issues/1758. Btw, thanks for a rockin' WPT test! ```js const pc = new RTCPeerConnection(); const sender1 = pc.addTrack(track, stream); pc.removeTrack(sender1); const sender2 = pc.addTrack(track2, stream); console.log(sender1 === sender2); // true ``` -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2025#issuecomment-441796104 using your GitHub account
Received on Monday, 26 November 2018 21:00:20 UTC