mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
opt in-app fullscreen
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user