javascript 视频播放指定的时间段

一.html5 vedio:

//指定开始时间

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

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

二.flowplayer:

相关文章:

  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2021-11-05
  • 2021-08-13
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案