Permalink
Browse files

[#1205] canplay/loadstart events for YouTube

  • Loading branch information...
1 parent 4ff9817 commit 5f34b14df474ba177e381b88545ec4c54d575296 @cstigler cstigler committed with ScottDowne Jul 25, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 players/youtube/popcorn.youtube.js
@@ -235,6 +235,8 @@
media.readyState = 4;
timeUpdate();
+
+ media.dispatchEvent( "canplay" );
media.dispatchEvent( "canplaythrough" );
}
};
@@ -294,6 +296,9 @@
options.youtubeObject.playVideo();
media.currentTime = fragmentStart;
+
+ media.dispatchEvent( "loadstart" );
+
// wait to dispatch ready events until we get a duration
},
"onStateChange": function( state ){

0 comments on commit 5f34b14

Please sign in to comment.