Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/video_player/video_player/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.2.1

* Fixed playback speed resetting on iOS (on seeking and on initialization).

## 2.2.0

* Add `contentUri` based VideoPlayerController.
Expand Down
8 changes: 8 additions & 0 deletions packages/video_player/video_player/lib/video_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,14 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
return;
}
_updatePosition(newPosition);

// It seems that seeking will reset the playback speed on iOS.
// However, we do not know how long to wait before applying the
// playback speed again as the video might be buffering. This is why
// we simply apply it in the timer in order to make sure that we
// always apply the latest playback speed. This does not seem to
// have any performance implications.
await _applyPlaybackSpeed();
},
);

Expand Down
2 changes: 1 addition & 1 deletion packages/video_player/video_player/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for displaying inline video with other Flutter
widgets on Android, iOS, and web.
repository: https://github.com/flutter/plugins/tree/master/packages/video_player/video_player
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
version: 2.2.0
version: 2.2.1

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down