一切正常,但又分开了。所以我的代码是:
var iframe = document.querySelector('iframe');
var player = new Vimeo.Player(iframe);
// Get the modal
var modal = document.getElementById('myModal');
// when video end open modal
player.on('ended', function() {
runmovie();
modal.style.display = "block";
});
及其作品..但是...当我想添加
player.on('play',function(){
document.getElementById('anefra').src =
'https://player.vimeo.com/video/293755890?autoplay=1';
setTimeout(function() {
runmovie();
},6000);});
然后脚本在播放器上运行player.on,在播放器中永远不会播放...为什么知道?!