W3C home > Mailing lists > Public > public-webrtc@w3.org > August 2012

Stats interface - modelling on IndexedDB API?

From: Harald Alvestrand <harald@alvestrand.no>
Date: Thu, 30 Aug 2012 12:53:22 +0200
Message-ID: <503F4622.40305@alvestrand.no>
To: "public-webrtc@w3.org" <public-webrtc@w3.org>

when implementing the Stats interface, I've concluded that it's not 
quite trivial to do it the way I'd written it up, due to the way WebKit 
hangs together.

Would anyone mind terribly if I changed it around to do it the way the 
IndexedDB API does it?

Basically, it seems to be:

- Request returns a "request object" with a status and a result
- When the data is ready, it fires a "success" event at the request object
- The caller can then read the data out from the request object


Seems a bit easier to get threaded through WebKit than the "simpler" 
method of "just" returning a complex structure in a callback.

Received on Thursday, 30 August 2012 10:53:56 UTC

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