72b55580 by Tom Johnson

notify flash tech of duration change for UI ramifications

1 parent 07c7021e
......@@ -408,6 +408,12 @@ var
// update the duration
player.duration(totalDuration(player.hls.media));
// tell the flash tech of the new duration
if(player.el().querySelector('.vjs-tech').id === 'video_flash_api') {
player.el().querySelector('.vjs-tech').vjs_setProperty('duration', player.duration());
}
// manually fire the duration change
player.trigger('durationchange');
}
};
......