W3C home > Mailing lists > Public > public-webrtc@w3.org > March 2015

{add|remove}Track are confusing names

From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 17 Mar 2015 15:09:23 -0700
Message-ID: <CABkgnnUsJL8F8cMSfCsyJ4F02Y+=EvJ3f=UE3Opegappm+azzA@mail.gmail.com>
To: "public-webrtc@w3.org" <public-webrtc@w3.org>
I've just had a long series of conversations about these.

RTCRtpSender addTrack(MediaStreamTrack track, MediaStream stream,
MediaStream... others);

The initial confusion here was that this was adding the track to the
provided stream (ignoring the return value).  That seems relatively
benign, except that...

void removeTrack(RTCRtpSender sender);

I don't even know where to start with this.  Where's the track?

Why not?

RTCRtpSender create[Track]Sender(MediaStreamTrack track, MediaStream
stream, MediaStream... others);
void remove[Track]Sender(RTCRtpSender sender);
Received on Tuesday, 17 March 2015 22:09:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:43 UTC