oncanplay
は GlobalEventHandlers
ミックスインのプロパティで、canplay
イベントを処理するイベントハンドラー
です。
canplay
イベントは、メディアを再生できるユーザーエージェントのとき、バッファリングのためにコンテンツを停止せずに、メディアを最後まで再生するのに十分なデータがロードされていないと推定されるときに発生します。
構文
element.oncanplay = handlerFunction; var handlerFunction = element.oncanplay;
handlerFunction
は、null
またはイベントハンドラーを指定する JavaScript 関数のいずれかです。
仕様
仕様書 | 策定状況 | コメント |
---|---|---|
HTML Living Standard oncanplay の定義 |
現行の標準 |
ブラウザー実装状況
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.