Package-level declarations

Types

Link copied to clipboard

The RemotePlayback interface of the Remote Playback API allows the page to detect availability of remote playback devices, then connect to and control playing on these devices.

Link copied to clipboard
typealias RemotePlaybackAvailabilityCallback = (available: Boolean) -> Unit
Link copied to clipboard
sealed interface RemotePlaybackState

Functions

Link copied to clipboard

The cancelWatchAvailability() method of the RemotePlayback interface cancels the request to watch for one or all available devices.

Link copied to clipboard
inline suspend fun RemotePlayback.prompt()

The prompt() method of the RemotePlayback interface prompts the user to select an available remote playback device and give permission for the current media to be played using that device.

Link copied to clipboard

The watchAvailability() method of the RemotePlayback interface watches the list of available remote playback devices and returns a Promise that resolves with the callbackId of a remote playback device.