update to use supportsNative versus flash api id
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -389,7 +389,7 @@ var | ... | @@ -389,7 +389,7 @@ var |
389 | // update the duration | 389 | // update the duration |
390 | player.duration(totalDuration(playlist)); | 390 | player.duration(totalDuration(playlist)); |
391 | // tell the flash tech of the new duration | 391 | // tell the flash tech of the new duration |
392 | if(player.el().querySelector('.vjs-tech').id === 'video_flash_api') { | 392 | if(!videojs.hls.supportsNativeHls) { |
393 | player.el().querySelector('.vjs-tech').vjs_setProperty('duration', player.duration()); | 393 | player.el().querySelector('.vjs-tech').vjs_setProperty('duration', player.duration()); |
394 | } | 394 | } |
395 | // manually fire the duration change | 395 | // manually fire the duration change | ... | ... |
-
Please register or sign in to post a comment