fix: return to fullscreen after pip

This commit is contained in:
Fredrik Burmester
2024-08-25 11:48:32 +02:00
parent c100c2e0c4
commit 36f1ea384d

View File

@@ -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
}