[Edge]。→、、
HTMLMediaElement.duration の値が更新されたときに発行されます。
mdn: duration 属性が更新されたときに発生します。
バブリング | ¶なし |
---|---|
キャンセル可能 | ¶はい |
インターフェイス | Event |
イベント ハンドラー プロパティ | ondurationchange |
HTML:
<VIDEO id=IdTest src="../../Sample/Eizou_M.mp4" controls style="width:200px"></VIDEO>
JavaScript:
function Job(eve){ //durationchange イベントの処理: D=eve; alert("イベント発生"); } IdTest.ondurationchange=Job; //イベント割り当て。 IdTest.src="../../Sample/Eizou_S.mp4"; //再生可能な違うファイルを指定。
得られた内容:D
=[object]:[object Event] isTrusted=[boolean]:true type=[string]:durationchange target=[object]:[object HTMLVideoElement] currentTarget=[object]:null eventPhase=[number]:0 bubbles=[boolean]:false cancelable=[boolean]:true defaultPrevented=[boolean]:false composed=[boolean]:false …