4.0 Major Feature Summary:Improved performance through an 18% size reduction using Google Closure Compiler in advanced mode
- Greater stability through an automated cross-browser/device test suite using TravisCI, Bunyip, and Browserstack.
- New plugin interface and plugin listing for extending Video.js
- New default skin design that uses font icons for greater customization
- Responsive design and retina display support
- Improved accessibility through better ARIA support
- Moved to Apache 2.0 license
Improved PerformanceWith version 4.0, performance was our top priority, and a major factor of performance is the time it takes to load the library. What would seem to be minor size reductions can have a big impact, especially when a library will be loaded millions of times a month all over the world. We chose to use Google’s Closure Compiler because its “advanced mode” currently provides the most aggressive options for code minification, and so far we’ve seen an 18% reduction in code size, with the potential for more. Closure Compiler also claims to rewrite code for better runtime performance, though we haven’t had a chance to benchmark this yet. Some preliminary load-time benchmarking* shows:
- Player load times in under 50 milliseconds
- Playback start times in under 150 milliseconds
- Actual video playback seen in under 0.5 seconds (using a CDN hosted MP4)
- TravisCI - Automatically runs unit tests through PhantomJS on every pull request made to the Video.js source code
- Bunyip + Browserstack - Allows us to run tests in cloud-hosted instances of any browser from IE6 to the latest Chrome, and also a wide range of iOS and Android devices.