Home  >  Article  >  Web Front-end  >  HTML5

HTML5

WBOY
WBOYOriginal
2016-05-16 15:49:401465browse

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.
Statement:
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