Interface MediaSession

    interface MediaSession {
        metadata: MediaMetadata;
        playbackState: MediaSessionPlaybackState;
        setActionHandler(
            action: MediaSessionAction,
            handler: MediaSessionActionHandler,
        ): void;
        setPositionState(state?: MediaPositionState): void;
    }

    Properties

    metadata: MediaMetadata

    Methods