fix: 直播倍速异常
This commit is contained in:
@ -443,10 +443,14 @@ class PlPlayerController {
|
|||||||
Duration seekTo = Duration.zero,
|
Duration seekTo = Duration.zero,
|
||||||
}) async {
|
}) async {
|
||||||
// 设置倍速
|
// 设置倍速
|
||||||
if (_playbackSpeed.value != 1.0) {
|
if (videoType.value == 'live') {
|
||||||
await setPlaybackSpeed(_playbackSpeed.value);
|
|
||||||
} else {
|
|
||||||
await setPlaybackSpeed(1.0);
|
await setPlaybackSpeed(1.0);
|
||||||
|
} else {
|
||||||
|
if (_playbackSpeed.value != 1.0) {
|
||||||
|
await setPlaybackSpeed(_playbackSpeed.value);
|
||||||
|
} else {
|
||||||
|
await setPlaybackSpeed(1.0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
getVideoFit();
|
getVideoFit();
|
||||||
// if (_looping) {
|
// if (_looping) {
|
||||||
|
|||||||
Reference in New Issue
Block a user