W3C home > Mailing lists > Public > public-webrtc@w3.org > November 2011

Re: Semantics question for onaddstream() callback

From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 7 Nov 2011 07:28:21 -0800
Message-ID: <CABcZeBNqgtA3ZA5LutpyDWUxw64YnTrmJZbNtOe-epUQF-=SsA@mail.gmail.com>
To: Harald Alvestrand <harald@alvestrand.no>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
On Mon, Nov 7, 2011 at 7:15 AM, Harald Alvestrand <harald@alvestrand.no> wrote:
> 1) We know that this stream is expected. The callback occurs as soon as we
> have the OFFER or ANSWER containing information about this stream. Move the
> last onaddstream() up to just after onconnecting().
>
> 2) We know that media is arriving on the stream. The callback occurs as soon
> as the first media packet arrives. Move the first onaddstream() down below
> the "ICE Completes" line
>
>
> My order of preference is 1) followed by 2). But I think we need to pick one
> and only one, and make sure the API spec says exactly that.

My vote would be (1) and to add a onmediastarted() callback to
indicate the first
packet for a given media stream.

-Ekr
Received on Monday, 7 November 2011 15:49:30 UTC

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