fix quality selector not showing up

This commit is contained in:
Sean Yesmunt 2021-01-27 13:57:06 -05:00
parent 9a395a0284
commit 99d7487bc2

View file

@ -376,15 +376,15 @@ export default React.memo<Props>(function VideoJs(props: Props) {
// initialize mobile UI
player.mobileUi(); // Inits mobile version. No-op if Desktop.
// Add quality selector to player
player.hlsQualitySelector({
displayCurrentQuality: true,
});
// I think this is a callback function
onPlayerReady(player);
});
// Add quality selector to player
vjs.hlsQualitySelector({
displayCurrentQuality: true,
});
// fixes #3498 (https://github.com/lbryio/lbry-desktop/issues/3498)
// summary: on firefox the focus would stick to the fullscreen button which caused buggy behavior with spacebar
vjs.on('fullscreenchange', () => document.activeElement && document.activeElement.blur());