js/media_session_web library

The interface to the Media Session API, navigator.mediaSession.

Useful links:

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.