fix: 倍速未还原、上一视频无法记忆播放

This commit is contained in:
guozhigq
2023-10-03 22:12:11 +08:00
parent 1e202979d3
commit 47e3cf46e4
2 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
videoIntroController.isPaused = false;
if (_extendNestCtr.position.pixels == 0 && autoplay) {
await Future.delayed(const Duration(milliseconds: 300));
plPlayerController!.seekTo(videoDetailController.defaultST);
plPlayerController?.play();
}
plPlayerController?.addStatusLister(playerListener);

View File

@ -418,6 +418,8 @@ class PlPlayerController {
// 设置倍速
if (_playbackSpeed.value != 1.0) {
await setPlaybackSpeed(_playbackSpeed.value);
} else {
await setPlaybackSpeed(1.0);
}
// if (_looping) {