Skip to content

MediaSession

Values

setActionHandler

let setActionHandler: (
WebAPI.MediaSessionAPI.mediaSession,
~action: WebAPI.MediaSessionAPI.mediaSessionAction,
~handler: WebAPI.MediaSessionAPI.mediaSessionActionHandler,
) => unit

setPositionState

let setPositionState: (
WebAPI.MediaSessionAPI.mediaSession,
~state: WebAPI.MediaSessionAPI.mediaPositionState=?,
) => unit