fix(recommend): 修正进度拖动与底栏联动
This commit is contained in:
1 parent
afe7a49ef0
commit
2765343340
9 files changed
+79
-107
No files matched your search
@@ -914,15 +914,19 @@ class PlayerLogic extends ChangeNotifier {
|
||||
void beginScrub(VideoPlayerPort player) {
|
||||
if (session.active != player) return;
|
||||
scrubbingPlayer = player;
|
||||
session.setOverlayOpen(true);
|
||||
}
|
||||
|
||||
void cancelScrub() {
|
||||
if (scrubbingPlayer == null) return;
|
||||
scrubbingPlayer = null;
|
||||
session.setOverlayOpen(false);
|
||||
}
|
||||
|
||||
Future<void> endScrub(
|
||||
BuildContext context,
|
||||
VideoPlayerPort player,
|
||||
Duration position,
|
||||
) => seekTo(context, player, position);
|
||||
|
||||
Future<void> seekTo(
|
||||
BuildContext context,
|
||||
VideoPlayerPort player,
|
||||
|
||||
Reference in new issue
Block a user