首页 > 代码库 > 【HTML5】音频视频

【HTML5】音频视频

 1 <!DOCTYPE html>
 2 <html>
 3 <head>
 4     <meta charset="utf-8">
 5     <title></title>
 6 </head>
 7 <body>
 8     <object src="img/鸟1.jpg">当前浏览器不支持此对象</object>
 9     <embed src="mp4/a.mp4"></embed>
10     <audio src="audio/音乐.mp3" controls=""></audio>
11     <audio controls="">
12         <source src="audio/音乐.mp3" type="audio/mp3">
13         <source src="audio/音乐.ogg" type="audio/ogg">
14         <source src="audio/音乐.wav" type="audio/wav">
15         当前浏览器不支持此音频
16     </audio>
17     <hr>
18     <video src="mp4/a.mp4" controls="" width="550" height="330" poster="img/草1.jpg" loop="">当前浏览器不支持此视频</video>
19     <video src="mp4/a.mp4" controls="" width="550" height="330" poster="img/草1.jpg" loop="" preload="metadata">当前浏览器不支持此视频</video>
20     <video controls="" width="550" height="330" poster="img/草1.jpg" loop="" preload="none">
21         <source src="video/video.mp4" type="video/mp4">
22         <source src="video/video.webm" type="video/webm">
23         <source src="video/video.ogg" type="video/ogg">
24         当前浏览器不支持此视频
25     </video>
26 </body>
27 </html>

 

【HTML5】音频视频