A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/ja/docs/Web/API/HTMLMediaElement/waiting_event below:

HTMLMediaElement: waiting イベント - Web API

HTMLMediaElement: waiting イベント

Baseline Widely available

waiting イベントは、一時的にデータが欠落したために再生が停止したときに発生します。

このイベントはキャンセル不可で、バブリングしません。

構文

このイベントを addEventListener() などのメソッドで使用するか、イベントハンドラープロパティを設定するかしてください。

addEventListener("waiting", (event) => {});

onwaiting = (event) => {};
イベント型

一般的な Event です。

例

これらの例は、 HTMLMediaElement の waiting イベントのイベントリスナーを追加し、イベントの発生によりイベントハンドラーが動作したときにメッセージを登録します。

addEventListener() を使用する場合

const video = document.querySelector("video");

video.addEventListener("waiting", (event) => {
  console.log("Video is waiting for more data.");
});

onwaiting イベントハンドラープロパティを使用する場合

const video = document.querySelector("video");

video.onwaiting = (event) => {
  console.log("Video is waiting for more data.");
};
仕様書 ブラウザーの互換性 関連イベント 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4