0
点赞
收藏
分享

微信扫一扫

H5-初识音视频-音视频引入及兼容性写法

木樨点点 2022-03-21 阅读 45

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>初识音频</title>

</head>

<body>

<video controls>

        <source src="./resource/video/3.mp4" type="video/mp4"></source>

        <source src="./resource/video/3.webm" type="video/webm"></source>

        当前浏览器不支持video播放,点击这里下载视频: <a href="#">下载视频</a>

    </video>

    <audio controls>

        <source src="./resource/audio/1.mp3" type="audio/mp3"></source>

        <source src="./resource/audio/1.aac" type="audio/aac codecs='aac'" ></source>        

        <source src="./resource/audio/1.ogg" type="audio/ogg codecs='vorbis'"></source>

        当前浏览器不支持audio播放,点击这里下载音频: <a href="#">下载音频</a>

    </audio>

</body>

</html>

举报

相关推荐

0 条评论