您好,欢迎来到界感财经。
搜索
您的当前位置:首页html5中media(播放器)的api使用指南_html5教程技巧

html5中media(播放器)的api使用指南_html5教程技巧

来源:界感财经


直接奉上示例代码,废话就不多说了。


代码如下:




HTML Audio API





HTML5 Audio API


HTML5 Audio API demo by http://github.com/LearnShare" target="_blank">LearnShare.



Last update @2013-04-23 20:40:00
+ add info table
update @2013-04-22 14:54:00
+ add DOM events
update @2013-04-22 12:47:00
+ add getCurrentSrc button



View code on http://github.com/LearnShare/LearnShare.github.io/tree/master/labs/audio/" target="_blank">LearnShare.github.io.
API reference: https://developer.mozilla.org/zh-CN/docs/DOM/HTMLMediaElement" target="_blank">HTMLMediaElement and http://www.w3schools.com/tags/ref_av_dom.asp" target="_blank">Audio/Video DOM References





Audio Element



Open the developer tool to view console logs.




Controls












































Copyright © 2019- jgsqfw.com 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务