fixes settting videoElement.currentTime before the metadata has been loaded
fixes jshint errors
fixes media end detection for mpds with non-integer duration value
improves player shutdown