commit | bc262e26cd2dca812f05bdad3b37398839e63007 | [log] [tgz] |
---|---|---|
author | Xiaohan Wang <xhwang@chromium.org> | Wed May 29 21:05:52 2019 |
committer | Xiaohan Wang <xhwang@chromium.org> | Thu May 30 15:49:46 2019 |
tree | 9ad135c727016b8e07649200bf308e1cde3d3797 | |
parent | 4d91fce279ea8efc953d248d7b5611dc650499c1 [diff] |
Remove CDM_9 interface CDM_10 CDM has been supported and shipped for a year and CDM_9 usage is very low. Now it's time to stop CDM_9 support. Bug: 799219 Change-Id: I184f07daa4d1f4e4d1226c753c564be27d3405ff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/cdm/+/1628907 Reviewed-by: John Rummell <jrummell@chromium.org>
This directory contains files that define the shared library interface between an Encrypted Media Extensions (EME) Content Decryption Module (CDM) and Chromium or other user agents. It is used to build both user agents and CDMs.
This is also referred to as the “CDM interface” in the context of library CDM and in this doc.
TODO(xhwang): Add more sections describing the CDM interface.
A new CDM interface that‘s still under development is subject to change. This is called an “experimental CDM interface”. To avoid compatibility issues, a user agent should not support an experimental CDM interface by default (it’s okay to support it behind a flag). Similarly, a CDM vendor should not ship a CDM using an experimental CDM interface to end users.
The experimental status of a CDM interface ends when the development is complete and the CDM interface is marked as stable. A stable CDM interface defines an application binary interface (ABI) between the CDM and the host, which should never be changed. Some minor ABI-compatible changes can still be made on a stable CDM interface to improve readability or to avoid unnecessary complexity. For example:
Note that even though these changes are ABI-compatible, the implementation may still need to be updated, e.g. to handle the new enum type in a switch case block.
On newer CDM interfaces, a static boolean member kIsStable is present to indicate whether the CDM interface is stable or experimental.