Skip to content

Revert 'hangup', 'togglecamera' and 'togglemicrophone' action handlers from MediaSession in TypeScript 4.9+ #52743

Closed as not planned
@vatson

Description

@vatson

lib Update Request

Action definitions that have existed for years have been removed with the latest LKG update for 4.9+
3a6d7e9#diff-796971dc74a3f3cd77ca0a3a776d6fe27ab224cd501d9652dbeffcf45ba0f058L18186

When 4.8.3 still has these definitions https://github.com/microsoft/TypeScript/blob/v4.8.4/lib/lib.dom.d.ts#L18186

Media Session Standard specification has information about these types of actions https://w3c.github.io/mediasession/#mediasession It is difficult to classify these things as experimental, because the standard itself is still Draft

Configuration Check

My compilation target is ES2015 and my lib is the default.

Missing / Incorrect Definition

MediaSessionAction has lost hangup, togglecamera and togglemicrophone options.

Sample Code

 navigator.mediaSession.setActionHandler('togglecamera', () => {
   // toggle camera
 });

Documentation Link

https://w3c.github.io/mediasession/#dom-mediasession-setactionhandler

Metadata

Metadata

Assignees

Labels

ExternalRelates to another program, environment, or user action which we cannot control.Needs InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions