DOM

インターフェイス

HTMLMediaElement:suspend イベント

 編集:2022.11.03 by T.A.

[Edge]。→mdnmdn(en-US)

HTMLMediaElement のメディア データの読み込みが中断されたときに発行されます。

mdn: メディア データの読み込みが中断されたときに発生します。

バブリング なし
キャンセル可能 いいえ¶
インターフェイス Event
イベント ハンドラー プロパティ onsuspend

GlobalEventHandlers でイベント ハンドラーが定義されている。

HTML:

<VIDEO id=IdTest src="../../Sample/Eizou_M.mp4" controls style="width:200px" muted></VIDEO><BR>
<SPAN id=IdLog></SPAN>

JavaScript:

function Job(eve){   //suspend イベントの処理:
  D=eve;
  IdLog.innerHTML=IdLog.innerHTML+"●";
}
IdTest.onsuspend=Job;  //イベント割り当て。
IdTest.src="http://tetuya-amamiya.la.coocan.jp/HTML_R/HTML-Rifarennsu/Sample/Eizou_L.mp4";
IdTest.play();

得られた内容:D

=[object]:[object Event]
isTrusted=[boolean]:true
type=[string]:suspend
target=[object]:[object HTMLVideoElement]
currentTarget=[object]:null
eventPhase=[number]:0
bubbles=[boolean]:false
cancelable=[boolean]:true
defaultPrevented=[boolean]:false
composed=[boolean]:false

cancelable=[boolean]:true となっているが。


テスト
HTML:


ここにHTMLが表示される
スクリプト組み込み:
JavaScript:


JavaScript:



表示内容:
表示内容: