Be more consistent about types

For more details see https://github.com/videojs/videojs-contrib-hls/issues/103
That's much better. Would you like me to make that change in this PR? Or are you guys taking care of that later?