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[转:]