Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-30 11:35:42 +08:00
parent 06b258cff1
commit 299ee09749
7 changed files with 69 additions and 53 deletions

View File

@@ -118,17 +118,11 @@ class LiveHeaderControl extends StatelessWidget {
plPlayerController.toggleDesktopPip();
return;
}
try {
var floating = Floating();
if ((await floating.isPipAvailable) == true) {
plPlayerController.hiddenControls(false);
floating.enable(
plPlayerController.isVertical
? const EnableManual(aspectRatio: Rational.vertical())
: const EnableManual(),
);
}
} catch (_) {}
if (await Floating().isPipAvailable) {
plPlayerController
..hiddenControls(false)
..enterPip();
}
},
icon: const Icon(
size: 18,