[Bug 25200] Add optional "licenseType" parameter to createSession()

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

--- Comment #7 from David Dorwin <ddorwin@google.com> ---
There seemed to be agreement at the f2f. At the f2f, Adrian proposed using a
dictionary in case other parameters become needed. I would want to limit the
dictionary members to what is documented. Also, we previously moved away from a
dictionary for standard capabilities - bug 24025, which is where this issue was
originally discussed.

Using a dictionary when we only have one item to put in it seems like overkill.
Also, it seems likely that any additional parameters would also be a different
session type, in which case this parameter would be needed anyway. I would be
tempted to make it the first parameter, but it really isn't necessary in the
common use case.

Because future uses of this parameter might really describe the session rather
than the license, I propose replacing "License" with "Session" in the original
proposal.

Here is an updated proposal:

enum SessionType { "temporary", "persistent" };
MediaKeySession createSession(DOMString contentType, Uint8Array initData,
optional SessionType sessionType = "temporary");

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

Received on Thursday, 10 April 2014 20:01:00 UTC