This is a good method to enable/disable this feature. And it is better than build-time configuration. That's really cool.

But I prefer to move the checking code to the place calling start/stop of video.js. I will mark for you.