2014-03-04 4 views
0

나는 내 웹 페이지에 Galleria autoplay를 가지고 있습니다 : http://www.clickclack.cz/. YouTube 동영상 제목을 추가하고 싶습니다 (YouTube 동영상 만 있습니다). 어떻게 도와 줄 수 있니?jQuery 갤러리아 - 자동 재생에 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(); 
       } 
      }); 
     } 
    }); 

}); 

답변

0

은 결국 나는 해결책을 찾아 냈다. JS에서 나는

을 추가했습니다.
youtube: { 
      modestbranding: 1, 
      autohide: 1, 
      color: 'white', 
      hd: 1, 
      rel: 0, 
      showinfo: 1 
     } 

showInfo : 1은 youtube에있는대로 비디오의 이름을 표시합니다.

관련 문제