HTML5技术

HTNL5--video/audio标签随笔 - Alice_y2(2)

字号+ 作者:H5之家 来源:H5之家 2017-11-08 11:02 我要评论( )

Media.error; Media.error.code; Media.currentSrc; Media.src = value; Media.canPlayType(type); Media.networkState; Media.load(); Media.buffered; Media.preload; Media.readyState; Media.seeking; Media.cu

Media.error; Media.error.code; Media.currentSrc; Media.src = value; Media.canPlayType(type); Media.networkState; Media.load(); Media.buffered; Media.preload; Media.readyState; Media.seeking; Media.currentTime = value; Media.startTime; Media.duration; Media.paused; Media.defaultPlaybackRate = value;Media.playbackRate = value;Media.played; Media.seekable; Media.ended; Media.autoPlay; Media.loop; Media.play(); Media.pause(); Media.controls;Media.volume = value; Media.muted = value; TimeRanges.length; TimeRanges.start(index) TimeRanges.end(index) //第index段区域的结束位置

View Code

事件:

1 eventTester = function(e){ 2 Media.addEventListener(e,function(){ 3 console.log((new Date()).getTime(),e); 4 }); 5 } eventTester("progress"); eventTester("suspend"); eventTester("abort"); eventTester("error"); eventTester("stalled"); eventTester("play"); eventTester("pause"); eventTester("loadedmetadata"); eventTester("loadeddata"); eventTester("playing"); eventTester("canplay"); eventTester("canplaythrough"); eventTester("seeking"); eventTester("seeked"); eventTester("timeupdate"); eventTester("ended"); eventTester("ratechange"); eventTester("durationchange"); eventTester("volumechange"); //音量改变

View Code

[转:]

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • 模拟制作网易云音乐(AudioContext) - _糊一笑

    模拟制作网易云音乐(AudioContext) - _糊一笑

    2017-11-07 16:03

  • HTML之头部标签 - Beck_Z

    HTML之头部标签 - Beck_Z

    2017-10-19 14:00

  • 防止html5的video标签在iphone中自动全屏 - 潘大胖

    防止html5的video标签在iphone中自动全屏 - 潘大胖

    2017-09-30 14:00

  • HTML5标签选择指引 - 喵嘻嘻

    HTML5标签选择指引 - 喵嘻嘻

    2017-09-30 09:00

网友点评
l