Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
playing イベントは再生が最初に開始されたときと、再生が再開されたときに発行されます。例えば、データ不足で一時停止や遅延していた再生が再開されたときに発行されます。
このイベントはキャンセル不可で、バブリングしません。
このイベントを addEventListener() などのメソッドで使用するか、イベントハンドラープロパティを設定するかしてください。
一般的な Event です。
これらの例は、 HTMLMediaElement の playing イベントにイベントリスナーを追加してから、イベントが発生したことでイベントハンドラーが動作したときにメッセージをポストします。
addEventListener() を使用した例:
onplaying イベントハンドラープロパティを使用した例:
| HTML # event-media-playing |
| HTML # handler-onplaying |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024年8月5日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.