7c12a63a by Tom Johnson

add try/catch. fix tests

1 parent f8399322
......@@ -390,7 +390,11 @@ var
player.duration(totalDuration(playlist));
// tell the flash tech of the new duration
if(!videojs.hls.supportsNativeHls) {
try {
player.el().querySelector('.vjs-tech').vjs_setProperty('duration', player.duration());
} catch (err) {
}
}
// manually fire the duration change
player.trigger('durationchange');
......