Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce the possiblity to expose microphone/camera state via MediaStreamTrack muted state #313

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Comment on lines +85 to +88
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The [=muted=] concept is exported, but it's done wrongly in mediacapture-streams. Can we fix that? @jan-ivar maybe?

It should be something like <dfn class="export" for="MediaStreamTrack">muted state</dfn> or something similar.

Same with set MediaStreamTrack muted state algorithm. We shouldn't need to be hard linking these.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I filed w3c/mediacapture-main#985, I'll update the spec here when this gets fixed in media capture-main

</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
Loading