Your browser does not support the <video> element.
video>
The current HTML5 draft specification does not specify which video formats browsers should support in the video tag. But the most commonly used video formats are:
Ogg: Ogg files with Thedora video encoder and Vorbis audio encoder.
mpeg4: MPEG4 file with H.264 video encoder and AAC audio encoder.
We can specify media files using the tag with media type and other attributes. The video element allows multiple source elements, and the browser will use the first recognized format:
XML/HTML Code
Copy content to clipboard
>
<html>
<body>
<videowidth="300"height="200" controls autoplay>
<sourcesrc="/html5/foo.ogg"type="video/ogg"/>
<sourcesrc="/html5/foo.mp4"type="video/mp4"/>
Your browser does not support the <video> element.
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