fix: 直播倍速异常

This commit is contained in:
guozhigq
2023-11-12 14:36:22 +08:00
parent 27e268b2a0
commit ea38305793

View File

@ -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) {