<video src="video.mp4" ></video>

 

x-webkit-airplay="true" 支持Airplay的设备

webkit-playsinline="true" 播放视频不全屏,ios7+、winphone8+支持,部分android4+支持(含华为、小米、魅族)

controls = "false" 在手机上没有作用,需要在 js 里重新设置

var videoPauseTime = [3,5,7];
var video = document.getElementById("video");
video.play();
video.controls = false;
video.ontimeupdate = function(){ 
      if(parseInt(video.currentTime) == videoPauseTime[0])
      {
          video.pause();
      }
};

 


定义视频暂停时间 ,在视频播放时判断时间即可暂停视频

 

video api 链接

http://www.w3schools.com/tags/ref_av_dom.asp

 

 据说可以去进度条和广告  先码一下 一会测试

x5-video-player-type="h5" x5-video-player-fullscreen="true"

 

相关文章:

  • 2022-12-23
  • 2021-11-26
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2021-10-22
猜你喜欢
  • 2022-02-12
  • 2022-02-12
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案