jQuery Galleria-如何将youtube视频标题添加到自动播放

jQuery Galleria-如何将youtube视频标题添加到自动播放,jquery,youtube,galleria,autoplay,Jquery,Youtube,Galleria,Autoplay,我的网页上有Galleria autoplay:。我想添加youtube视频标题(只有youtube视频)。你能帮我吗,怎么做 我的设置如下: $(function() { Galleria.loadTheme('galleria/themes/classic/galleria.classic.min.js'); Galleria.run('#galleria', { _toggleInfo: false, extend

我的网页上有Galleria autoplay:。我想添加youtube视频标题(只有youtube视频)。你能帮我吗,怎么做

我的设置如下:

    $(function() {
    Galleria.loadTheme('galleria/themes/classic/galleria.classic.min.js');          
    Galleria.run('#galleria', {
        _toggleInfo: false,
        extend: function() { 
            var gallery = this; 

            gallery.play(); 
            var paused = 0; 
            this.$('stage').hover(function() { 
                if (paused) { 
                    $(this).data('overTime', '1');
                } else { 
                    paused = 1; 
                    gallery.pause(); 
                    $(this).data('overTime', new Date().getTime()); 
                } 
            }, function() { 
                var outTime = new Date().getTime(); 
                var hoverTime = (outTime - $(this).data('overTime'))/1000;
                if (hoverTime < 0.5) { // restart slideshow if hover under 0.5 seconds 
                    paused = 0; 
                    gallery.play(); 
                } 
            }); 
        } 
    });

});
$(函数(){
Galleria.loadTheme('Galleria/themes/classic/Galleria.classic.min.js');
Galleria.run(“#Galleria”{
_toggleInfo:false,
扩展:函数(){
var gallery=这个;
gallery.play();
var=0;
这个.$('stage').hover(函数(){
如果(暂停){
$(此).data('超时','1');
}否则{
暂停=1;
暂停();
$(this.data('timeout',new Date().getTime());
} 
},函数(){
var outTime=new Date().getTime();
var hoverTime=(超时-$(this).data(‘超时’)/1000;
如果(悬停时间<0.5){//如果悬停时间低于0.5秒,则重新启动幻灯片放映
暂停=0;
gallery.play();
} 
}); 
} 
});
});

最后我找到了解决方案。在JS中,我添加了

youtube: {
            modestbranding: 1,
            autohide: 1,
            color: 'white',
            hd: 1,
            rel: 0,
            showinfo: 1
        }
showInfo:1显示youtube上的视频名称