72b55580 by Tom Johnson

notify flash tech of duration change for UI ramifications

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