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();
|
callback?.call();
|
||||||
// 获取视频时长 00:00
|
// 获取视频时长 00:00
|
||||||
_duration.value = duration ?? _videoPlayerController!.state.duration;
|
_duration.value = duration ?? _videoPlayerController!.state.duration;
|
||||||
_sliderPosition.value = seekTo ?? Duration.zero;
|
_position.value = _sliderPosition.value = seekTo ?? Duration.zero;
|
||||||
updateDurationSecond();
|
updateDurationSecond();
|
||||||
|
updatePositionSecond();
|
||||||
updateSliderPositionSecond();
|
updateSliderPositionSecond();
|
||||||
// 数据加载完成
|
// 数据加载完成
|
||||||
dataStatus.status.value = DataStatus.loaded;
|
dataStatus.status.value = DataStatus.loaded;
|
||||||
@@ -803,7 +804,9 @@ class PlPlayerController {
|
|||||||
if (videoType.value == 'live') {
|
if (videoType.value == 'live') {
|
||||||
await setPlaybackSpeed(1.0);
|
await setPlaybackSpeed(1.0);
|
||||||
} else {
|
} else {
|
||||||
await setPlaybackSpeed(_playbackSpeed.value);
|
if (_videoPlayerController?.state.rate != _playbackSpeed.value) {
|
||||||
|
await setPlaybackSpeed(_playbackSpeed.value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
getVideoFit();
|
getVideoFit();
|
||||||
// if (_looping) {
|
// if (_looping) {
|
||||||
|
|||||||
Reference in New Issue
Block a user