html5中返回AudioTrackList对象的属性audioTracks


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

<!DOCTYPE html>

<html>

<body>

 

<p>

    <button onclick="getAudioTracks()" type="button">获得可用音轨的数量</button>

</p>

 

<video id="video1" controls="controls">

    <source src="/example/html5/mov_bbb.mp4" type="video/mp4">

    <source src="/example/html5/mov_bbb.ogg" type="video/ogg">

    您的浏览器不支持 video 标签。

</video>

 

<script>

var myVid = document.getElementById("video1");

function getAudioTracks() {

    alert(myVid.audioTracks.length);

}

</script>

 

</body>

</html>

以上就是html5中返回AudioTrackList对象的属性audioTracks的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

前端必看h5 meta小结

html5唤起app的方法

html5 中的一些有趣的新特性

html5/css3 网页加载进度条的实现,下载进度条等经典案例

h5canvas绘制五星红旗的实例讲解

关于h5的pushstate和replacestate的用法分析

html5比flash好在哪

浅谈html5的未来发展

基于jquery和html5的日历时钟插件 的图文详解

常用的html5列表标签

更多相关阅读请进入《AudioTrackList》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...