Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
tzuhanjan committed Jan 28, 2014
1 parent 9937f66 commit fb2b29a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@
var done = false;
function onPlayerStateChange(event) {
if (event.data == YT.PlayerState.PLAYING && !done) {
setTimeout(stopVideo, 6000);
setTimeout(nextVideo, 6000);
done = true;
}
}
function stopVideo() {
function nextVideo() {
player.stopVideo();
onYoutubeIframeAPIReady();
}
</script>
</body>
Expand Down

0 comments on commit fb2b29a

Please sign in to comment.