diff --git a/src/components/VideoPlayer2.tsx b/src/components/VideoPlayer2.tsx index 110d5e103..25d434679 100644 --- a/src/components/VideoPlayer2.tsx +++ b/src/components/VideoPlayer2.tsx @@ -299,6 +299,10 @@ export const VideoPlayer: FunctionComponent = ({ onReady(player); } }); + // Focus the video player when toggling fullscreen + player.on('fullscreenchange', () => { + videoElement.focus(); + }); }, ));