From 061778a21933fbc568de096c5e165d8e836b248a Mon Sep 17 00:00:00 2001 From: youennf Date: Mon, 22 Jan 2024 16:36:19 +0100 Subject: [PATCH] Introduce the possiblity to expose microphone/camera state via MediaStreamTrack muted state. (#313) 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 6407033..fb9834a 100644 --- a/index.bs +++ b/index.bs @@ -83,6 +83,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

@@ -584,6 +588,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