Popcorn.js no longer needs to poll readystate
Just doing some housecleaning in the code, and it hit me we don't need to poll ready state.
Instead, let's use a combination of readyState and events.
If ready state is >= 2, we're ready and run the function, else, setup an event for "loadeddata", which is equal to 2.
Comments and changes to this ticket
- Assigned user changed from Scott Downe to cadecairos
- State changed from assigned to peer-review-requested
I cleaned this up a bit.
- Assigned user changed from cadecairos to Scott Downe
- State changed from review-looks-good to staged
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Popcorn.js is an HTML5 video framework that lets you bring elements of the web into your videos.
Popcorn.js is a project of Web Made Movies, Mozilla's Open Video Lab.