html5 video获取实时播放进度的方法

来源:互联网 发布:沃虎送货单软件 编辑:程序博客网 时间:2024/05/18 02:23
 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);    }

查看原文:http://newmiracle.cn/?p=609
0 0