diff --git a/components/CurrentlyPlayingBar.tsx b/components/CurrentlyPlayingBar.tsx index bc05677f..a3276692 100644 --- a/components/CurrentlyPlayingBar.tsx +++ b/components/CurrentlyPlayingBar.tsx @@ -29,6 +29,7 @@ export const CurrentlyPlayingBar: React.FC = () => { setIsPlaying, isPlaying, videoRef, + presentFullscreenPlayer, onProgress, } = usePlayback(); @@ -182,6 +183,11 @@ export const CurrentlyPlayingBar: React.FC = () => { : undefined, }, }} + onRestoreUserInterfaceForPictureInPictureStop={() => { + setTimeout(() => { + presentFullscreenPlayer(); + }, 300); + }} onBuffer={(e) => e.isBuffering ? console.log("Buffering...") : null }