On ended, pause player if not paused or looping IE11 (and maybe other browsers as well) only fire 'ended' event when the video ends and doesn't fire pause. This makes IE11 not reset it's state into a paused state that allows a user to replay immediately. However, a two clicks on the play/pause button will allow you to replay. In Chrome, we get first a pause event and then an ended event. When 'loop' is set, neither the last pause nor ended fire. In the flash tech, the pause and ended events fire like in chrome in all browsers. Add tests for onEnded change Appease jshint.
Video.js - HTML5 Video Player
Video.js is a web video player built from the ground up for an HTML5 world. It supports HTML5 and Flash video, as well as YouTube and Vimeo (through plugins). It supports video playback on desktops and mobile devices. This project was started mid 2010, and the player is now used on over 50,000 websites.
Visit videojs.com for an overview, download options, and instructions on how to use the player on your site.
Contributing
Video.js is a free and open source library, and we appreciate any help you're willing to give. Check out the contributing guide.
Building your own Video.js from source
To build your own custom version read the section on contributing code and "Building your own copy" in the contributing guide.
License
Video.js is licensed under the Apache License, Version 2.0. View the license file
Copyright 2014 Brightcove, Inc.