Readonly
stateThe state
read-only property of the RemotePlayback interface returns the current state of the RemotePlayback
connection.
The addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optional
options: boolean | AddEventListenerOptionsThe addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optional
options: boolean | AddEventListenerOptionsThe cancelWatchAvailability()
method of the RemotePlayback interface cancels the request to watch for one or all available devices.
Optional
id: numberThe dispatchEvent()
method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
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.
The removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptionsThe removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptionsThe 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.
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