javascript 视频播放指定的时间段

一.html5 vedio:

//指定开始时间

player.currentTime=startPoint;
player.play();

//使用事件来控制视频停止
player.ontimeupdate=function(){
if(player.currentTime>=endPoint){
player.pause();
return false;
}
};

二.flowplayer:

相关文章: