-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
34 lines (23 loc) · 847 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: "HTMLMediaElement: remote property"
short-title: remote
slug: Web/API/HTMLMediaElement/remote
page-type: web-api-instance-property
browser-compat: api.HTMLMediaElement.remote
---
{{APIRef("Remote Playback API")}}
The **`remote`** read-only property of the {{domxref("HTMLMediaElement")}} interface returns the {{domxref("RemotePlayback")}} object associated with the media element. The `RemotePlayback` object allow the control of remote devices playing the media.
## Value
A {{domxref("RemotePlayback")}} 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
{{Specifications}}
## Browser compatibility
{{Compat}}