Skip to content

Commit

Permalink
youtube no longer sending initial state, calling initial state manual…
Browse files Browse the repository at this point in the history
…ly - fixes auto play
  • Loading branch information
octatone committed Nov 17, 2011
1 parent 64126db commit 7662a07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/tv.youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ function onYouTubePlayerReady(playerId) {
youtube.obj = document.getElementById("ytplayer");
youtube.obj.addEventListener("onStateChange", "youtube.stateListener", true);
youtube.obj.addEventListener("onError", "youtube.errorListener", true);
youtube.stateListener(-1);
}

0 comments on commit 7662a07

Please sign in to comment.