videojs/video.js — pull request #1155 by m0v0nage (2014-04-18 00:58:10+00:00)
Title: Fixes issue #673

Most credit to @jewel for code. Mine differs only in the order of else's so that the minified version works.