Skip to content

Commit

Permalink
Add inherit info for RemotePlayback & update desc for `RemotePlayba…
Browse files Browse the repository at this point in the history
…ck.watchAvailability()` (mdn#32297)

* add inherit info

* update desc

* small style update
  • Loading branch information
skyclouds2001 committed Apr 11, 2024
1 parent c781603 commit f6fd1d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/remote_playback_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec-urls: https://w3c.github.io/remote-playback/

{{DefaultAPISidebar("Remote Playback API")}}

The Remote Playback API extends the {{domxref("HTMLMediaElement")}} to enable the control of media played on a remote device.
The **Remote Playback API** extends the {{domxref("HTMLMediaElement")}} to enable the control of media played on a remote device.

## Concepts and Usage

Expand Down
8 changes: 7 additions & 1 deletion files/en-us/web/api/remoteplayback/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ The **`RemotePlayback`** interface of the {{domxref('Remote Playback API','','',

## Instance properties

_Also inherits properties from its parent interface, {{DOMxRef("EventTarget")}}._

- {{domxref("RemotePlayback.state")}} {{ReadOnlyInline}}

- : Represents the `RemotePlayback` connection's state. One of:
Expand All @@ -26,15 +28,19 @@ The **`RemotePlayback`** interface of the {{domxref('Remote Playback API','','',

## Instance methods

_Also inherits methods from its parent interface, {{DOMxRef("EventTarget")}}._

- {{domxref("RemotePlayback.watchAvailability()")}}
- : A {{jsxref("Promise")}} that resolves with a `callbackId` of an available remote playback device.
- : Watches the list of available remote playback devices and returns a {{jsxref("Promise")}} that resolves with a `callbackId` of an available remote playback device.
- {{domxref("RemotePlayback.cancelWatchAvailability()")}}
- : Cancels the request to monitor the availability of remote playback devices.
- {{domxref("RemotePlayback.prompt()")}}
- : Prompts the user to select and give permission to connect to a remote playback device.

## Events

_Also inherits events from its parent interface, {{DOMxRef("EventTarget")}}._

- {{domxref("RemotePlayback.connecting_event", "connecting")}}
- : Fired when the user agent initiates remote playback.
- {{domxref("RemotePlayback.connect_event", "connect")}}
Expand Down

0 comments on commit f6fd1d7

Please sign in to comment.