Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-31 18:03:13 +08:00
parent fef508ced6
commit 8713af4290
7 changed files with 80 additions and 47 deletions

View File

@@ -255,12 +255,11 @@ class PlPlayerController with BlockConfigMixin {
}
}
void enterPip({bool isAuto = false}) {
void enterPip() {
if (videoPlayerController != null) {
controls = false;
final state = videoPlayerController!.state;
PageUtils.enterPip(
isAuto: isAuto,
width: state.width == 0 ? width : state.width,
height: state.height == 0 ? height : state.height,
);