HTMLMediaElement: remote property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Theremote read-only property of theHTMLMediaElement interface returns theRemotePlayback object associated with the media element. TheRemotePlayback object allow the control of remote devices playing the media.
In this article
Value
ARemotePlayback object associated with the media element.
Example
js
const el = document.createElement("audio");const remotePlayback = el.remote;remotePlayback.watchAvailability((availability) => { // Do something when the availability changes});Specifications
| Specification |
|---|
| Remote Playback API> # dom-htmlmediaelement-remote> |