ビデオの再生が終了したら、Fancybox を閉じようとしています。ビデオの再生に関しては、すべてが正常に実行されています。イベントで何も得られませんonComplete
。
<script type="text/javascript">
$(document).ready(function () {
$.fancybox({
fitToView: true,
content: '<span></span>', // create temp content
scrolling: 'no',
afterLoad: function () {
this.content = "<embed src='_assets/js/vendor/player.swf?file=../../../_content/test.mp4&autostart=true&wmode=opaque&controlbar.position=over&controlbar.idlehide=true' type='application/x-shockwave-flash' width='620' height='350'></embed>"; // replace temp content
},
events: {
onComplete: function() {
alert('Works');
}
}
});
}); // ready
</script>
誰かが私がどこで間違っているかを見ることができれば素晴らしいでしょう。