Skip to content

Commit

Permalink
WIP: link 'supported by the user agent'
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisn committed Jul 18, 2024
1 parent 18a18d5 commit f2cd76d
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,7 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte
<p>
If |mimeType| indicates a codec that is used with RTP as defined in the
specifications of the corresponding RTP payload formats [[RFC4855]]
[[RFC6838]], and supported by the user agent,
return <code>supported</code>, otherwise return <code>unsupported</code>.
[[RFC6838]], return whether |mimeType| is [=supported by the user agent=].
</p>
<p class="note">
The codec name is typically specified as subtype and zero or more
Expand All @@ -911,12 +910,12 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte
<li>
If |mediaType| is <code>audio</code> and |mimeType|'s [=MIME type/type=]
per [[RFC9110]] is neither <code>audio</code> nor <code>application</code>,
return <code>unsupported</code>.
return <code>false</code>.
</li>
<li>
If |mediaType| is <code>video</code> and |mimeType|'s [=MIME type/type=]
per [[RFC9110]] is neither <code>video</code> nor <code>application</code>,
return <code>unsupported</code>.
return <code>false</code>.
</li>
<li>
If the combined <code>type</code> and <code>subtype</code> members
Expand All @@ -927,9 +926,7 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte
is not empty, return <code>failure</code>.
</li>
<li>
If |mimeType| indicates a codec that is supported by the user
agent, return <code>supported</code>, otherwise return
<code>unsupported</code>.
Return whether |mimeType| is [=supported by the user agent=].
</li>
</ol>
</li>
Expand All @@ -939,17 +936,15 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte
<li>
If the <code>parameters</code> member of |mimeType|
does not contain a single key named "codecs", return
<code>unsupported</code>.
<code>false</code>.
</li>
<li>
If the value of <code>mimeType.parameters["codecs"]</code>
does not describe a single media codec, return
<code>unsupported</code>.
<code>false</code>.
</li>
<li>
If |mimeType| indicates a codec that is supported by the user
agent, return <code>supported</code>, otherwise return
<code>unsupported</code>.
Return whether |mimeType| is [=supported by the user agent=].
</li>
</ol>
</li>
Expand Down

0 comments on commit f2cd76d

Please sign in to comment.