See RemotePlayback on MDN
type remotePlayback = {state: remotePlaybackState}
Read more on MDN
There are methods and helpers defined in RemotePlayback .
type remotePlaybackAvailabilityCallback = bool => unit
type remotePlaybackState = | @as("connected") Connected | @as("connecting") Connecting | @as("disconnected") Disconnected