prompt method
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.
If the user gives permission, the RemotePlayback.state will be set to
connecting
and the user agent will connect to the device to initiate
playback.
If the user chooses to instead disconnect from the device, the
RemotePlayback.state will be set to disconnected
and user agent will
disconnect from this device.
Implementation
external JSPromise<JSAny?> prompt();