youtube api无法加载转动滑块

时间:2017-05-04 09:10:33

标签: wordpress api slider

我使用wordpress的滑块革命插件,当我使用fancybox单击播放按钮时,我会在弹出窗口中加载youtube。在加载视频之前我收到此消息加载视频:

“youtube api无法加载旋转滑块”

/* change revapi1 to whatever api number is being used for your slider */
var api = revapi1;
 
/* no need to edit below unless you want to change the default FancyBox settings */
api.on('revolution.slide.onloaded', function() {
 
    jQuery(this).find('.fancybox').each(function() {
 
        var $this = jQuery(this);
        if(!$this.is('a')) $this = $this.removeClass('fancybox').find('a');
 
        $this.addClass('fancybox').fancybox({
 
            /* begin FancyBox options */
            width: 960,            
            height: 540,
            autoSize: true,
            aspectRatio: true,
            fitToView: true,
            autoCenter: true,
            scrolling: 'no',
            type: 'iframe',
            onClosed: function() {api.revresume()}
 
        }).on('click', function() {api.revpause()});
 
    });
 
});

0 个答案:

没有答案