Permalink
Browse files

youtube no longer sending initial state, calling initial state manual…

…ly - fixes auto play
  • Loading branch information...
1 parent 64126db commit 7662a07479cd9e3c4ece76cbd6154f33309ddd75 @octatone committed Nov 17, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 js/tv.youtube.js
View
@@ -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.