File tree 3 files changed +9
-1
lines changed
packages/video_player/video_player
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.11.1+1
2
+
3
+ * Fixed uncanceled timers when calling ` play ` on the controller multiple times before ` pause ` , which
4
+ caused value listeners to be called indefinitely (after ` pause ` ) and more often than needed.
5
+
1
6
## 0.11.1
2
7
3
8
* Enable TLSv1.1 & TLSv1.2 for API 19 and below.
Original file line number Diff line number Diff line change @@ -391,6 +391,9 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
391
391
}
392
392
if (value.isPlaying) {
393
393
await _videoPlayerPlatform.play (_textureId);
394
+
395
+ // Cancel previous timer.
396
+ _timer? .cancel ();
394
397
_timer = Timer .periodic (
395
398
const Duration (milliseconds: 500 ),
396
399
(Timer timer) async {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: Flutter plugin for displaying inline video with other Flutter
4
4
# 0.10.y+z is compatible with 1.0.0, if you land a breaking change bump
5
5
# the version to 2.0.0.
6
6
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
7
- version : 0.11.1
7
+ version : 0.11.1+1
8
8
homepage : https://github.com/flutter/plugins/tree/master/packages/video_player/video_player
9
9
10
10
flutter :
You can’t perform that action at this time.
0 commit comments