From 80a4816fa3b4410ef6f95f5235aa08db44508290 Mon Sep 17 00:00:00 2001
From: Youenn Fablet
Date: Wed, 10 Jan 2024 17:20:06 +0100
Subject: [PATCH] Introduce the possiblity to expose microphone/camera state
via MediaStreamTrack muted state. In that case, mention that action handlers
are first called, then mute/unmute events fire in separate tasks.
---
index.bs | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/index.bs b/index.bs
index 469078d..3f2f174 100644
--- a/index.bs
+++ b/index.bs
@@ -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
Introduction
@@ -587,6 +591,15 @@ conforming IDL fragments, as described in the Web IDL specification. [[!WEBIDL]]
for=MediaSessionAction>hangup media session actions if none was
provided for the active media session.
+
+ A user agent MAY expose microphone and camera state to web pages via
+ MediaStreamTrack muted state 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=].
+
A page should only register a {{MediaSessionActionHandler}} for a media