Re: Semantics question for onaddstream() callback

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