Home > Web Front-end > H5 Tutorial > HTML5

HTML5

WBOY
Release: 2016-05-16 15:49:40
Original
1482 people have browsed it

Although HTML5 videos can use controls to display controls and control playback, pause, etc., different browsers may display different effects, so many times we need to use Dom to perform some customized operations and controls. Below is a small example.
Of course the effect is not very beautiful. If you want it to look good, you can set the css style yourself.

Copy code
The code is as follows:











Copy code
The code is as follows:



It should be noted that among all the properties, only the videoWidth and videoHeight properties are immediately available.
Additional properties are not available until the video's metadata has been loaded.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template