Skip to content

Commit

Permalink
Introduce the possiblity to expose microphone/camera state via MediaS…
Browse files Browse the repository at this point in the history
…treamTrack muted state.

In that case, mention that action handlers are first called, then mute/unmute events fire in separate tasks.
  • Loading branch information
youennf committed Jan 15, 2024
1 parent 5d4054a commit 80a4816
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ urlPrefix: https://www.w3.org/TR/permissions-policy-1/; spec: PermissionsPolicy
urlPrefix: https://html.spec.whatwg.org/multipage/dom.html; spec: dom
type: dfn
text: permissions policy; url:#concept-document-permissions-policy
urlPrefix: https://www.w3.org/TR/mediacapture-streams/; spec: mediacapture-main
type: dfn
text: MediaStreamTrack muted state; url:#track-muted
text: set MediaStreamTrack muted state; url:#set-track-muted
</pre>

<h2 id="introduction">Introduction</h2>
Expand Down Expand Up @@ -587,6 +591,15 @@ conforming IDL fragments, as described in the Web IDL specification. [[!WEBIDL]]
for=MediaSessionAction>hangup</a> <a>media session actions</a> if none was
provided for the <a>active media session</a>.
</p>
<p>
A user agent MAY expose microphone and camera state to web pages via <a>
MediaStreamTrack muted state</a> in addition to
{{MediaSessionAction/togglemicrophone}} or
{{MediaSessionAction/togglecamera}} [=media session action=]. In that
case, the user agent MUST execute the corresponding
{{MediaSessionActionHandler}} before running, as different tasks, the
steps defined to [=set MediaStreamTrack muted state=].
</p>

<p class=note>
A page should only register a {{MediaSessionActionHandler}} for a <a>media
Expand Down

0 comments on commit 80a4816

Please sign in to comment.