mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt desktop pip
Closes #1478 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -281,6 +281,8 @@ class PlPlayerController {
|
||||
}
|
||||
|
||||
Future<void> enterDesktopPip() async {
|
||||
if (isFullScreen.value) return;
|
||||
|
||||
isDesktopPip = true;
|
||||
|
||||
_lastWindowBounds = await windowManager.getBounds();
|
||||
@@ -1572,6 +1574,7 @@ class PlPlayerController {
|
||||
bool isManualFS = true,
|
||||
FullScreenMode? mode,
|
||||
}) async {
|
||||
if (isDesktopPip) return;
|
||||
if (isFullScreen.value == status) return;
|
||||
|
||||
if (fsProcessing) {
|
||||
@@ -1916,4 +1919,4 @@ class PlPlayerController {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -843,7 +843,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
BottomControlType.subtitle,
|
||||
BottomControlType.speed,
|
||||
if (flag) BottomControlType.qa,
|
||||
BottomControlType.fullscreen,
|
||||
if (!plPlayerController.isDesktopPip) BottomControlType.fullscreen,
|
||||
];
|
||||
|
||||
return Row(
|
||||
|
||||
Reference in New Issue
Block a user