HTML 5 Video + DOM
HTML5 <video> - 使用 DOM 进行控制
HTML5 <video>
DOM 说,<video> 等等。
如何使用 <video>
实例
/:
方法:play() 和 pause()性:paused 和 width。
HTML5 <video> - 以及事件
| 方法 | 属性 | 事件 |
|---|---|---|
| play() | currentSrc | play |
| pause() | currentTime | pause |
| load() | videoWidth | progress |
| canPlayType | videoHeight | error |
| duration | timeupdate | |
| ended | ended | |
| error | abort | |
| paused | empty | |
| muted | emptied | |
| seeking | waiting | |
| volume | loadedmetadata | |
| height | ||
| width |
注释:中,只有 videoWidth 和 videoHeight 才可用。