Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web/API/HTMLVideoElement/poster を新規翻訳 #24039

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions files/ja/web/api/htmlvideoelement/poster/index.md
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}}