Skip to main content

ExtendedMediaSessionAction

type ExtendedMediaSessionAction =
| MediaSessionAction
| "enterpictureinpicture"
| "hangup"
| "togglecamera"
| "togglemicrophone"
| "togglescreenshare"
| "voiceactivity";

Media session actions, including the conferencing specific ones which are not part of the MediaSessionAction type shipped with TypeScript's DOM library.

hangup, togglecamera, togglemicrophone and enterpictureinpicture are implemented by Chromium based browsers. togglescreenshare and voiceactivity are only specified so far, and are registered as a no-op by every current browser, which createMediaSession handles gracefully.

Note that voiceactivity runs the other way around to the rest: the user agent invokes the handler when it detects voice on a live microphone track, e.g. to let a page nudge a muted user who is talking.

See​