Closed as not planned
Closed as not planned
Description
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