Skip to content

Commit cd594b8

Browse files
authored
Fix refs to hardware-context-reset and internal-error (#548)
The prose incorrectly referenced `{{MediaKeyStatus/"hardware-context-reset"}}` which does not exist, instead of using the `MediaKeySessionClosedReason` enum. The CDM Unavailable algorithm takes a `MediaKeySessionClosedReason` value as input, so the references to `{{MediaKeyStatus/"internal-error"}}` were incorrect too.
1 parent 28b28d2 commit cd594b8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

encrypted-media-respec.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6249,8 +6249,9 @@

62496249
<li>
62506250
<p>
62516251
Run the [=CDM Unavailable=] algorithm on <var>media keysvar> with the
6252-
reason {{MediaKeyStatus/"hardware-context-reset"}} for a hardware context
6253-
reset or {{MediaKeyStatus/"internal-error"}} otherwise.
6252+
reason {{MediaKeySessionClosedReason/"hardware-context-reset"}} for a
6253+
hardware context reset or {{MediaKeySessionClosedReason/"internal-error"}}
6254+
otherwise.
62546255
p>
62556256
li>
62566257
<li>
@@ -6354,9 +6355,10 @@

63546355
<p>
63556356
If <var>cdmvar> is no longer usable, run the [=CDM
63566357
Unavailable=] algorithm on <var>media keysvar> with the
6357-
reason {{MediaKeyStatus/"hardware-context-reset"}} for a
6358-
hardware context reset, or
6359-
{{MediaKeyStatus/"internal-error"}} otherwise.
6358+
reason
6359+
{{MediaKeySessionClosedReason/"hardware-context-reset"}}
6360+
for a hardware context reset, or
6361+
{{MediaKeySessionClosedReason/"internal-error"}} otherwise.
63606362
p>
63616363
li>
63626364
<li>

0 commit comments

Comments
 (0)