fix: 直播倍速异常
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user