RemotePlayback

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.

MDN Reference

Properties

Link copied to clipboard

The state read-only property of the RemotePlayback interface returns the current state of the RemotePlayback connection.

Functions

Link copied to clipboard
suspend fun cancelWatchAvailability(id: Int = definedExternally)

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

Link copied to clipboard
fun cancelWatchAvailabilityAsync(id: Int = definedExternally): Promise<Void>
Link copied to clipboard
Link copied to clipboard
suspend fun 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
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.

Link copied to clipboard