我有视频滑块,我在一张幻灯片上启动了视频,然后将其更改为另一张幻灯片,之前的视频没有停止。 我的js选项
this.speed = 1000;
this.timeout = 0;
this.slider = $('.cycle-slideshow');
this.slider.cycle({
slides: '.slide',
fx: 'scrollHorz',
swipe: true,
timeout: this.timeout,
speed: this.speed,
next: '.tagg-video-slider .cycle-next',
prev: '.tagg-video-slider .cycle-prev',
youtube: true,
youtubeAutostart: true
});
幻灯片的结构:
<iframe class="media-youtube-player" width="640" height="390" title="zSm91-i_h6Y" src="//www.youtube.com/embed/zSm91-i_h6Y?wmode=opaque&enablejsapi=1&playerapiid=media-youtube-zsm91-i-h6y" frameborder="0" allowfullscreen="" style="visibility: hidden;">Video of zSm91-i_h6Y</iframe>
问题是iframe还是什么?
谢谢!