[Bug 17199] Provide examples for and get feedback on Key Release

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

--- Comment #4 from Mark Watson <watsonm@netflix.com> 2012-08-22 16:39:30 UTC ---
Here is an outline proposal for the key release API in the new object-oriented
context:

If key release is supported, then
(i) when the MediaKeySession.close() method is called, the session enters a
"key release pending" state and a keymessage event is fired on the
MediaKeySession, containing the key release object
(ii) when the application receives the key release acknowledgement from the
server the session is updated with this message using the addKey() method (or
update(), if we rename it as per bug 18531 [1]). The MediaKeySession enters a
"key release complete" state
(iii) a new method is added to MediaKeys: MediaKeySession?
retrieveClosedSession() which will retrieve a MediaKeySession object in the key
release pending state. Subsequent calls to this method will retrieve further
sessions in the 'key release pending state' until none are left (we could
consider returning a list of MediaKeySession objects). A keymessage event is
fired on each MediaKeySession retrieved with this method containing the key
release object.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=18531

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 22 August 2012 16:39:43 UTC