【问题标题】:youtube api could not be loaded revolution slider无法加载 youtube api 旋转滑块
【发布时间】:2017-05-04 09:10:33
【问题描述】:

我使用 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()});
 
    });
 
});

【问题讨论】:

    标签: wordpress api slider


    【解决方案1】:

    我认为可能是您的缓存有问题,您可以使用其他浏览器进行测试,或者切换到隐身模式

    【讨论】:

      猜你喜欢
      • 2020-03-29
      • 1970-01-01
      • 1970-01-01
      • 2015-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多