[Bug 26372] Report issues/events not related to a specific method call

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26372

--- Comment #36 from Joe Steele <steele@adobe.com> ---
(In reply to David Dorwin from comment #35)
> (In reply to David Dorwin from comment #34)
> Authors could still get unexpected results if they wrote iterative code that
> referenced the member repeatedly. For this reason and to allow asynchronous
> communication with the CDM (rather than the user agent caching the
> statuses), we should probably use a promise-returning method:
> 
> interface MediaKeySession : EventTarget {
>   ...
>   Promise<MediaKeyStatuses> getKeyStatuses();
> };

I think I like the maplike returning method better than adding these methods
directly as part of the MediaKeySession. Having the Promise is nice, and it
avoids the unfortunate "key" method you mentioned in the other case. I can't
see any case where we would not be ok with a copy. 

However -- am I correct in assuming that the application needs to periodically
poll this structure to determine if key status has changed? Or can this be
monitored with Object.observe()?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 11 November 2014 04:37:30 UTC