在Magnific Popup中,如何在视频结束后自动播放下一个视频?在Vimeo中结束视频的回调事件是什么?
function initMP(){
$('.video').magnificPopup({
type: 'iframe',
preloader: false,
fixedContentPos: false,
gallery: {
enabled: true,
navigateByImgClick: true,
preload: [0,1]
},
});
}
initMP();
.mfp-arrow-left:before{
content: "<";
}
.mfp-arrow-right:before{
content: ">";
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
<a class="video" href="https://vimeo.com/85822230">Video 1 </a><br>
<a class="video" href="https://vimeo.com/85822192">Video 2 </a><br>
<a class="video" href="https://vimeo.com/70513919">Video 3 </a><br>