fix: 直播倍速异常

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

View File

@ -443,11 +443,15 @@ class PlPlayerController {
Duration seekTo = Duration.zero, Duration seekTo = Duration.zero,
}) async { }) async {
// 设置倍速 // 设置倍速
if (videoType.value == 'live') {
await setPlaybackSpeed(1.0);
} else {
if (_playbackSpeed.value != 1.0) { if (_playbackSpeed.value != 1.0) {
await setPlaybackSpeed(_playbackSpeed.value); await setPlaybackSpeed(_playbackSpeed.value);
} else { } else {
await setPlaybackSpeed(1.0); await setPlaybackSpeed(1.0);
} }
}
getVideoFit(); getVideoFit();
// if (_looping) { // if (_looping) {
// await setLooping(_looping); // await setLooping(_looping);