On ended, pause player if not paused or looping

https://github.com/videojs/video.js/pull/1507 except stable