f8399322 by Tom Johnson

update to use supportsNative versus flash api id

1 parent f9d2e1e1
...@@ -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
......