GlobalEventHandlers
的oncanplay
属性是EventHandler
处理 canplay
事件。
当用户代理能够播放媒体时canplay
事件被触发 , 但是预估没有加载全部的数据以支持媒体播放完毕。
语法
element.oncanplay = handlerFunction; var handlerFunction = element.oncanplay;
handlerFunction
或者是 null
或者是一个 JavaScript function 指定事件的处理句柄。
说明
说明 | 状态 | 备注 |
---|---|---|
HTML Living Standard oncanplay |
Living Standard |
浏览器兼容
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.