From fc90aec5990a7de159e44f75001ba22f6535bd33 Mon Sep 17 00:00:00 2001 From: "yue7.huang" Date: Mon, 25 Dec 2023 18:28:31 +0800 Subject: [PATCH] Set play speed do not need judge playing state --- packages/video_player_avplay/lib/video_player.dart | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/video_player_avplay/lib/video_player.dart b/packages/video_player_avplay/lib/video_player.dart index 2ad55d31a..f41e1f494 100644 --- a/packages/video_player_avplay/lib/video_player.dart +++ b/packages/video_player_avplay/lib/video_player.dart @@ -574,11 +574,6 @@ class VideoPlayerController extends ValueNotifier { _updatePosition(newPosition); }, ); - - // For Tizen, playback speed don't need to set when start play, - // otherwise player will restart buffer. - // The default value is 1.0. - // await _applyPlaybackSpeed(); } else { _timer?.cancel(); await _videoPlayerPlatform.pause(_playerId); @@ -597,13 +592,6 @@ class VideoPlayerController extends ValueNotifier { return; } - // Setting the playback speed on iOS will trigger the video to play. We - // prevent this from happening by not applying the playback speed until - // the video is manually played from Flutter. - if (!value.isPlaying) { - return; - } - await _videoPlayerPlatform.setPlaybackSpeed( _playerId, value.playbackSpeed,