mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: set pos
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -543,8 +543,9 @@ class PlPlayerController {
|
||||
callback?.call();
|
||||
// 获取视频时长 00:00
|
||||
_duration.value = duration ?? _videoPlayerController!.state.duration;
|
||||
_sliderPosition.value = seekTo ?? Duration.zero;
|
||||
_position.value = _sliderPosition.value = seekTo ?? Duration.zero;
|
||||
updateDurationSecond();
|
||||
updatePositionSecond();
|
||||
updateSliderPositionSecond();
|
||||
// 数据加载完成
|
||||
dataStatus.status.value = DataStatus.loaded;
|
||||
@@ -803,7 +804,9 @@ class PlPlayerController {
|
||||
if (videoType.value == 'live') {
|
||||
await setPlaybackSpeed(1.0);
|
||||
} else {
|
||||
await setPlaybackSpeed(_playbackSpeed.value);
|
||||
if (_videoPlayerController?.state.rate != _playbackSpeed.value) {
|
||||
await setPlaybackSpeed(_playbackSpeed.value);
|
||||
}
|
||||
}
|
||||
getVideoFit();
|
||||
// if (_looping) {
|
||||
|
||||
Reference in New Issue
Block a user