RemotePlayback extension type

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.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
onconnect EventHandler?
getter/setter pair
onconnecting EventHandler?
getter/setter pair
ondisconnect EventHandler?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state RemotePlaybackState
The state read-only property of the RemotePlayback interface returns the current state of the RemotePlayback connection.
no setter

Methods

addEventListener(String type, EventListener? callback, [JSAny options]) → void
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
inherited
cancelWatchAvailability([int id]) JSPromise<JSAny?>
The cancelWatchAvailability() method of the RemotePlayback interface cancels the request to watch for one or all available devices.
dispatchEvent(Event event) bool
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prompt() JSPromise<JSAny?>
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.
removeEventListener(String type, EventListener? callback, [JSAny options]) → void
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
inherited
toString() String
A string representation of this object.
inherited
watchAvailability(RemotePlaybackAvailabilityCallback callback) JSPromise<JSNumber>
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.

Operators

operator ==(Object other) bool
The equality operator.
inherited