-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: "HTMLMediaElement: remote プロパティ" | ||
short-title: remote | ||
slug: Web/API/HTMLMediaElement/remote | ||
l10n: | ||
sourceCommit: 0b6bfb8a3a03de5956dd1cec4b47e5e37078149d | ||
--- | ||
|
||
{{APIRef("Remote Playback API")}} | ||
|
||
**`remote`** は {{domxref("HTMLMediaElement")}} インターフェイスの読み取り専用プロパティで、このメディア要素に関連付けられた {{domxref("RemotePlayback")}} オブジェクトを返します。`RemotePlayback` オブジェクトは、メディアを再生するリモート端末を制御することができます。 | ||
|
||
## 値 | ||
|
||
このメディア要素に関連付けられた {{domxref("RemotePlayback")}} オブジェクトです。 | ||
|
||
## 例 | ||
|
||
```js | ||
const el = document.createElement("audio"); | ||
const remotePlayback = el.remote; | ||
|
||
remotePlayback.watchAvailability((availability) => { | ||
// 利用できる状況が変わったら何かを行う | ||
}); | ||
``` | ||
|
||
## 仕様書 | ||
|
||
{{Specifications}} | ||
|
||
## ブラウザーの互換性 | ||
|
||
{{Compat}} |