diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index 49f9cdbe9..d8549f860 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -126,8 +126,9 @@ export default React.memo(function VideoJs(props: Props) { wrapper.appendChild(el); containerRef.current.appendChild(wrapper); - player = videojs(el, videoJsOptions); - onPlayerReady(player); + player = videojs(el, videoJsOptions, () => { + onPlayerReady(player); + }); // 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