答案 0 :(得分:0)
您可以使用此cuepoints plugin。语法类似:
videojs("myVideo").ready(function(){
this.cuepoints();
this.addCuepoint({
start: 2,
end: 5,
onStart: function(params){
document.getElementById('text').innerHTML="Hello";
},
onEnd: function(params){
document.getElementById('text').innerHTML="Bye";
},
params: {error: false}
});
});