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

Re: {add|remove}Track are confusing names

From: Justin Uberti <juberti@google.com>
Date: Tue, 17 Mar 2015 17:02:33 -0700
Message-ID: <CAOJ7v-1TVwW-qgS4uhEoBZZ+EOsZYFJpWsw67DBOvo+RewJEMg@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
This is a naming debate; it's unclear that
createSender/removeSender/onreceiver are more intuitive than
addTrack/removetTrack/ontrack.

That said, I agree that removeTrack(sender) is a bit awkward; we could just
as easily make that removeTrack(track || sender).

On Tue, Mar 17, 2015 at 3:09 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> 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 Wednesday, 18 March 2015 00:03:20 UTC

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