-
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
39 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,39 @@ | ||
--- | ||
title: "HTMLVideoElement: poster プロパティ" | ||
short-title: poster | ||
slug: Web/API/HTMLVideoElement/poster | ||
l10n: | ||
sourceCommit: 85e913af9f01e216149d3381586eb0c784fefff7 | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
**`poster`** は {{domxref("HTMLVideoElement")}} インターフェイスのプロパティで、動画データが利用できない場合に表示させる画像の URL を反映する文字列です。プロパティが有効な URL を表していない場合、ポスターフレームは表示されません。 | ||
|
||
これは、{{HTMLElement("video")}} 要素の `poster` 属性を反映しています。 | ||
|
||
## 値 | ||
|
||
文字列です。 | ||
|
||
## 例 | ||
|
||
```html | ||
<video | ||
id="media" | ||
src="https://example.com/video.mp4" | ||
poster="https://example.com/poster.jpg"></video> | ||
``` | ||
|
||
```js | ||
const el = document.getElementById("media"); | ||
console.log(el.poster); // 出力: "https://example.com/poster.jpg" | ||
``` | ||
|
||
## 仕様書 | ||
|
||
{{Specifications}} | ||
|
||
## ブラウザーの互換性 | ||
|
||
{{Compat}} |