opt in-app fullscreen

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-26 10:26:27 +08:00
parent d961b6d7a9
commit 86a79a9733
10 changed files with 25 additions and 31 deletions

View File

@@ -1463,7 +1463,10 @@ class PlPlayerController {
// 全屏
bool fsProcessing = false;
Future<void> triggerFullScreen({bool status = true}) async {
Future<void> triggerFullScreen({
bool status = true,
bool inAppFullScreen = false,
}) async {
if (fsProcessing) {
return;
}
@@ -1493,10 +1496,10 @@ class PlPlayerController {
(isVertical || size.height / size.width < 1.25)))) {
await verticalScreenForTwoSeconds();
} else {
await landScape();
await landscape(inAppFullScreen: inAppFullScreen);
}
} else if (isFullScreen.value && !status) {
showStatusBar();
showStatusBar(inAppFullScreen: inAppFullScreen);
toggleFullScreen(false);
if (mode == FullScreenMode.none) {
fsProcessing = false;