js/media_session_web library
The interface to the Media Session API, navigator.mediaSession
.
Useful links:
- W3C specification https://w3c.github.io/mediasession/
- MDN documentation https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/
Classes
- MediaSessionActions
- Actions that the user may perform in a media session.
- MediaSessionPlaybackState
- Media session playback state types.
Extension Types
- MediaSessionActionDetails
- Specifies the type of action which needs to be performed as well as the data needed to perform the action.
Typedefs
- MediaSessionActionHandler = dynamic Function(MediaSessionActionDetails)
- A callback signature for the MediaSession.setActionHandler.