refactoring, better integration with videojs settings