Skip to content

Commit 16a5d67

Browse files
authored
Add explicit places to trigger hardware-context-reset (#537)
Related to issue #494, where we want to specify `generateRequest` resolution on `hardware-context-reset`. <!-- This comment and the below content is programmatically generated. You may add a comma-separated list of anchors you'd like a direct link to below (e.g. #idl-serializers, #idl-sequence): Don't remove this comment or modify anything below this line. If you don't want a preview generated for this pull request, just replace the whole of this comment's content by "no preview" and remove what's below. --> *** <a href="https://pr-preview.s3.amazonaws.com/w3c/encrypted-media/pull/537.html" title="Last updated on May 14, 2024, 10:21 PM UTC (efd8b85)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/encrypted-media/537/c01e7e5...efd8b85.html" title="Last updated on May 14, 2024, 10:21 PM UTC (efd8b85)">Diff</a>
1 parent d88071c commit 16a5d67

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

encrypted-media-respec.html

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3218,17 +3218,23 @@ <h4>
32183218
<p>
32193219
The CDM unavailable algorithm is run to close all {{MediaKeySession}} objects
32203220
associated with a {{MediaKeys}} object, <var>media keys</var> when the [=CDM=] instance
3221-
becomes unavailable.
3221+
becomes unavailable. Requests to run this algorithm include a
3222+
{{MediaKeySessionClosedReason}} value.
32223223
</p>
32233224
<p>
3224-
The following step is run:
3225+
The following steps are run:
32253226
</p>
32263227
<ol>
3228+
<li>
3229+
<p>
3230+
Let the <var>reason</var> be the specified {{MediaKeySessionClosedReason}} value.
3231+
</p>
3232+
</li>
32273233
<li>
32283234
<p>
32293235
For each {{MediaKeySession}} created by the <var>media keys</var> that is not
32303236
[=media key session/closed=], [=queue a task=] to run the [=Session Closed=]
3231-
algorithm on the session with reason {{MediaKeyStatus/"internal-error"}}.
3237+
algorithm on the session with the reason <var>reason</var>.
32323238
</p>
32333239
</li>
32343240
</ol>
@@ -5369,8 +5375,16 @@ <h4>
53695375
</li>
53705376
<li>
53715377
<p>
5372-
If <var>cdm</var> has become unavailable, [=queue a task=] to run the [=CDM
5373-
Unavailable=] algorithm.
5378+
If <var>cdm</var> has become unavailable due to a hardware context reset,
5379+
[=queue a task=] to run the [=CDM Unavailable=] algorithm with reason
5380+
{{MediaKeySessionClosedReason/"hardware-context-reset"}}.
5381+
</p>
5382+
</li>
5383+
<li>
5384+
<p>
5385+
If <var>cdm</var> has become unavailable for any other reason,
5386+
[=queue a task=] to run the [=CDM Unavailable=] algorithm with reason
5387+
{{MediaKeySessionClosedReason/"internal-error"}}.
53745388
</p>
53755389
</li>
53765390
</ol>
@@ -6225,9 +6239,6 @@ <h4>
62256239
<p>
62266240
If <var>cdm</var> is no longer usable for any reason, run the following steps:
62276241
</p>
6228-
<p class="note">
6229-
These steps are intended to be run on unrecoverable failures of the [=CDM=].
6230-
</p>
62316242
<ol>
62326243
<li>
62336244
<p>
@@ -6237,7 +6248,9 @@ <h4>
62376248
</li>
62386249
<li>
62396250
<p>
6240-
Run the [=CDM Unavailable=] algorithm on <var>media keys</var>.
6251+
Run the [=CDM Unavailable=] algorithm on <var>media keys</var> with the
6252+
reason {{MediaKeyStatus/"hardware-context-reset"}} for a hardware context
6253+
reset or {{MediaKeyStatus/"internal-error"}} otherwise.
62416254
</p>
62426255
</li>
62436256
<li>
@@ -6339,9 +6352,10 @@ <h4>
63396352
</li>
63406353
<li>
63416354
<p>
6342-
If <var>cdm</var> is no longer usable for any reason then
6343-
run the [=CDM Unavailable=] algorithm on <var>media
6344-
keys</var>.
6355+
If <var>cdm</var> is no longer usable, run the [=CDM Unavailable=]
6356+
algorithm on <var>media keys</var> with the reason
6357+
{{MediaKeyStatus/"hardware-context-reset"}} for a hardware
6358+
context reset, or {{MediaKeyStatus/"internal-error"}} otherwise.
63456359
</p>
63466360
</li>
63476361
<li>

0 commit comments

Comments
 (0)