[Bug 25537] New: Expose expiration information to the application

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

            Bug ID: 25537
           Summary: Expose expiration information to the application
           Product: HTML WG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Encrypted Media Extensions
          Assignee: ddorwin@google.com
          Reporter: ddorwin@google.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-media@w3.org

License expiration is a fairly common concept. Applications could use this
information to manage renewals or provide UI to the user. The CDM knows the
exact time, which can be based on complex logic. While applications could store
this information or retrieve it from the server in most cases, this is not
always the case (i.e. offline) and it would be better to expose the exact value
the CDM is using.

Exposing this information might even address the expired case for MediaKeyError
in bug 21798.

This could be as simple as adding the following to MediaKeySession:
  readonly attribute Date expires;

For sessions where an expiration time does not apply, the value can be
*undefined*. See http://www.w3.org/TR/WebIDL/#idl-Date for additional details
on the Date type.

Since the CDM is the source of this information, it would need to update the
MediaKeySession object if/when it changes. The initial value should be set
before createSession()/loadSession() resolve their promise.

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

Received on Friday, 2 May 2014 19:59:34 UTC