notify flash tech of duration change for UI ramifications
Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment