zl程序教程

您现在的位置是:首页 >  云平台

当前栏目

html5 video获取实时播放进度的方法详解编程语言

实时方法html5编程语言 详解 获取 播放 Video
2023-06-13 09:11:50 时间

getvideoprogress();

function getvideoprogress() {
setTimeout(function () {
var vid = document.getElementById( video1 );
var currentTime=vid.currentTime.toFixed(1);
if(currentTime==1.2){
//触发
return false;
}
console.log(currentTime);
getvideoprogress();
}, 50);
}

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/18908.html

c