Read more on MDN
let setActionHandler: ( WebAPI.MediaSessionAPI.mediaSession, ~action: WebAPI.MediaSessionAPI.mediaSessionAction, ~handler: WebAPI.MediaSessionAPI.mediaSessionActionHandler,) => unit
let setPositionState: ( WebAPI.MediaSessionAPI.mediaSession, ~state: WebAPI.MediaSessionAPI.mediaPositionState=?,) => unit