W3C home > Mailing lists > Public > public-html-media@w3.org > June 2012

[EME] Requiring generateKeyRequest() in all cases for all key systems

From: David Dorwin <ddorwin@google.com>
Date: Mon, 11 Jun 2012 22:49:40 -0700
Message-ID: <CAHD2rsgHHuYYx4kNdpWXvFy3g=yBOwA1ENDc1pFuGnTMmYoULw@mail.gmail.com>
To: public-html-media@w3.org

The proposal currently allows addKey() to be called without
calling generateKeyRequest(). This allows a very simple application as
shown in the example in section 7.1. However, such applications are
unlikely and supporting this adds complexity to implementations. Therefore,
I would like to always require generateKeyRequest(). Does anyone object?

The impact on the example in section 7.1 is shown in

Benefits include:
 * Simplifies user agent implementation - there is one API where a CDM can
be instantiated.
 * We can eliminate the keySystem parameter from addKey() and
 * Less confusion in the application and user agent related to the
potential for the keySystem value to change, such as in addKey() and
clearKeyRequest() calls.
 * It fits nicely with an object-oriented design, such as the one proposed
in bug 16613.
Received on Tuesday, 12 June 2012 05:50:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 15:48:22 UTC