mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
fix: return to fullscreen after pip
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user