Skip to content

Commit

Permalink
[#1205] canplay/loadstart events for YouTube
Browse files Browse the repository at this point in the history
  • Loading branch information
cstigler authored and ScottDowne committed Aug 20, 2012
1 parent 4ff9817 commit 5f34b14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions players/youtube/popcorn.youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@
media.readyState = 4;

timeUpdate();

media.dispatchEvent( "canplay" );
media.dispatchEvent( "canplaythrough" );
}
};
Expand Down Expand Up @@ -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 ){
Expand Down

0 comments on commit 5f34b14

Please sign in to comment.