@@ -49,7 +49,7 @@ class _CupertinoControlsState extends State<CupertinoControls>
49
49
bool _subtitleOn = false ;
50
50
Timer ? _bufferingDisplayTimer;
51
51
bool _displayBufferingIndicator = false ;
52
-
52
+ double selectedSpeed = 1.0 ;
53
53
late VideoPlayerController controller;
54
54
55
55
// We know that _chewieController is set in didChangeDependencies
@@ -559,6 +559,8 @@ class _CupertinoControlsState extends State<CupertinoControls>
559
559
560
560
if (chosenSpeed != null ) {
561
561
controller.setPlaybackSpeed (chosenSpeed);
562
+
563
+ selectedSpeed = chosenSpeed;
562
564
}
563
565
564
566
if (_latestValue.isPlaying) {
@@ -754,6 +756,9 @@ class _CupertinoControlsState extends State<CupertinoControls>
754
756
final skip =
755
757
(_latestValue.position - const Duration (seconds: 15 )).inMilliseconds;
756
758
controller.seekTo (Duration (milliseconds: math.max (skip, beginning)));
759
+ Future .delayed (const Duration (milliseconds: 100 ), () {
760
+ controller.setPlaybackSpeed (selectedSpeed);
761
+ });
757
762
}
758
763
759
764
void _skipForward () {
@@ -762,6 +767,9 @@ class _CupertinoControlsState extends State<CupertinoControls>
762
767
final skip =
763
768
(_latestValue.position + const Duration (seconds: 15 )).inMilliseconds;
764
769
controller.seekTo (Duration (milliseconds: math.min (skip, end)));
770
+ Future .delayed (Duration (milliseconds: 100 ), () {
771
+ controller.setPlaybackSpeed (selectedSpeed);
772
+ });
765
773
}
766
774
767
775
void _startHideTimer () {
0 commit comments