Skip to content

Commit

Permalink
Set play speed do not need judge playing state
Browse files Browse the repository at this point in the history
  • Loading branch information
hyue7 committed Dec 25, 2023
1 parent 98040c4 commit fc90aec
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/video_player_avplay/lib/video_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -574,11 +574,6 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
_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);
Expand All @@ -597,13 +592,6 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
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,
Expand Down

0 comments on commit fc90aec

Please sign in to comment.