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

Re: Data Channel Buffer Management Proposal

From: Benjamin Schwartz <bemasc@google.com>
Date: Tue, 19 May 2015 13:17:10 -0400
Message-ID: <CAHbrMsA+GmbuZ=F7FErZV5O7Az7k3ODHLX_OH8UNUzn6XUQZXA@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
Are you advocating for an event every time bufferedAmount decreases, or an
event when bufferedAmount crosses some (constant or configurable) threshold?

On Tue, May 19, 2015 at 12:32 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 18 May 2015 at 11:43, Benjamin Schwartz <bemasc@google.com> wrote:
> > Promise<void> waitForBufferedAmountBelow (unsigned long amount);
> >
> > This method returns a Promise that resolves when this.bufferedAmount <=
> > amount, or rejects if the channel reaches the "closed" state.
>
> I think that this requires strictly more state on the browser than an
> event.  Since the function can be invoked multiple times with
> different thresholds, the browser has to track a set of thresholds.
>
> I'd prefer an event.
>
Received on Tuesday, 19 May 2015 17:17:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:06 UTC