add pip backward/forward btns

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-01 10:04:11 +08:00
parent 6661332316
commit 350a52510c
7 changed files with 225 additions and 23 deletions

View File

@@ -262,6 +262,8 @@ class PlPlayerController with BlockConfigMixin {
PageUtils.enterPip(
width: state.width == 0 ? width : state.width,
height: state.height == 0 ? height : state.height,
isLive: isLive,
isPlaying: playerStatus.isPlaying,
);
}
}
@@ -798,18 +800,10 @@ class PlPlayerController with BlockConfigMixin {
);
}),
// 媒体通知监听
if (videoPlayerServiceHandler != null) ...[
playerStatus.listen((PlayerStatus event) {
videoPlayerServiceHandler!.onStatusChange(
event,
isBuffering.value,
isLive,
);
}),
if (videoPlayerServiceHandler != null)
positionSeconds.listen((int event) {
videoPlayerServiceHandler!.onPositionChange(Duration(seconds: event));
}),
],
];
}