2014-12-21 2 views
2

신뢰할 :유튜브 자바 스크립트 플레이어 API seekTo() 나는이 일을 해요

onPlayerReady: function(player) { 
    ... 
    player.seekTo(time, true) 
    player.playVideo() 
    ... 
} 

하지만 때로는 비디오가 time 몇 분 ...이 약의 1/4 발생하지만 처음부터 시작을 시간은 내 서비스가 항상이 작업에 의존하기 때문에 불안합니다.

아이디어가 있으십니까?

+0

'onYouTubePlayerReady' [참조] (https://developers.google.com/youtube/js_api_reference#EventHandlers) – JRulle

+0

내가 아는'있어야 onPlayerReady'한다 ... 이것은 'React.js'컴포넌트입니다 ...하지만 이벤트는'onYouTubePlayerReady'에서옵니다 .. 이제 비디오가 이미 여기에 설명 된대로 재생되기 시작한 후에 검색하려고합니다 : http : //www.scottdstrader .com/blog/ether_archives/001683.html – davidhq

답변