源码位置: https://bjtysh.chinahrt.cn/share/player.js?2020
var i = 0; setInterval(function () { player.sdk.seekTo(i++); updateLearn(); }, 1000); study={gcid:294539,state:0,curzjid:7965,curstart:134,rnd:'05NDU65M4T',chcode:'1c98e2a54af5547011b3b95a73c2dfae'}; player = new CloudVodPlayer(); player.init({"callbackJs":"lecallback","uu":"dtwvguafwb","pu":"6833c1f9f7","vu":"c81c5c64ec","auto_play":1,"gpcflag":1,"width":696,"height":438,"lang":"zh_CN","playbackRate":true},"libVideo"); var i = 0; setInterval(function () { player.sdk.seekTo(i); study.curstart = i; i += 10; $.ajax({ type: "POST", url: "server.asp", data: study, dataType: "json", success: function (json) { console.log(json); }, error: function (x, y, z) { console.log(x); } }); }, 1000);可以实现多开的目的。
另外一种类型的视频,可如下操作,快速增加学习时长。
window.setInterval(updateLearn, 2000);