Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use `emptied` event to reset player states #1277
In videojs/video.js#1124 we added a feature to let the player reset its 'has-started' state when a new source is loaded. It used the loadstart event to do this.
In #1271 we found that the play and loadstart events could fire in any order, so we made a fix so that the the firstplay event would be fired even if the play event came before the loadstart.
In videojs/video.js#1271 we also realized that
However, the Flash SWF doesn't fire the emptied event, so before we can use it we have to first implement it in Flash. Adding a related issue on the swf repo. videojs/video-js-swf#100
referenced this issue
Jun 10, 2014
Just ran into this. With autoplay and ads on safari, we end up getting the