Skip to content

Commit

Permalink
Update hdcp-detection-explainer.md with the NotSupportedError case (#520
Browse files Browse the repository at this point in the history
)
  • Loading branch information
xhwang-chromium committed Dec 14, 2023
1 parent cb27b11 commit c1bd9c9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions hdcp-detection-explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ hypothetical key associated with an HDCP policy, without the need to create a
MediaKeySession or fetch a real license. It does not require the MediaKeys to be
attached to any HTMLMediaElement, either.

If HDCP is available at the specified version, the promise should return
a MediaKeyStatus of "usable". Otherwise, the promise should return
a MediaKeyStatus of "output-restricted". The determination of HDCP status
should be done in the same way that the CDM would enforce such a restriction
during playback. In this way, application developers can get a reasonable hint
to allow them to optimize what content they fetch to start playback.
If the CDM cannot determine the MediaKeyStatus, e.g. the current HDCP level is
not available, then reject promise with `NotSupportedError`. If HDCP is available
at the specified version, the promise should return a MediaKeyStatus of "usable".
Otherwise, the promise should return a MediaKeyStatus of "output-restricted".
The determination of HDCP status should be done in the same way that the CDM
would enforce such a restriction during playback. In this way, application
developers can get a reasonable hint to allow them to optimize what content they
fetch to start playback.

A MediaKeyStatus value of "status-pending" must never be returned. Implementers
must give decisive actionable return values for developers to make decisions
Expand Down

0 comments on commit c1bd9c9

Please sign in to comment.