DOM

HTMLMediaElement:progress イベント

 編集:2022.11.03 by T.A.

[Edge]。→

HTMLMediaElement でブラウザーがリソースを読み込むときに発行されます。

mdn: ブラウザーがリソースを読み込むときに定期的に発生します。

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

HTML:

<VIDEO id=IdTest src="" controls></VIDEO><BR>
<SPAN id=IdLog></SPAN>

JavaScript:

function Job(eve){   //progress イベントの処理:
  D=eve;
  IdLog.innerHTML=IdLog.innerHTML+"●";
}
IdTest.onprogress=Job;  //イベント割り当て。
IdTest.src="../../Sample/Eizou_M.mp4";

得られた内容:D

=[object]:[object Event]
isTrusted=[boolean]:true
type=[string]:progress
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 となっているが。


テスト