File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
+ import 'dart:developer' ;
2
3
import 'dart:math' as math;
3
4
import 'dart:ui' as ui;
4
5
@@ -756,7 +757,8 @@ class _CupertinoControlsState extends State<CupertinoControls>
756
757
final skip =
757
758
(_latestValue.position - const Duration (seconds: 15 )).inMilliseconds;
758
759
controller.seekTo (Duration (milliseconds: math.max (skip, beginning)));
759
- Future .delayed (const Duration (milliseconds: 100 ), () {
760
+ log ("Reversing the video" , name: "Video Player" );
761
+ Future .delayed (const Duration (milliseconds: 200 ), () {
760
762
controller.setPlaybackSpeed (selectedSpeed);
761
763
});
762
764
}
@@ -767,7 +769,9 @@ class _CupertinoControlsState extends State<CupertinoControls>
767
769
final skip =
768
770
(_latestValue.position + const Duration (seconds: 15 )).inMilliseconds;
769
771
controller.seekTo (Duration (milliseconds: math.min (skip, end)));
770
- Future .delayed (Duration (milliseconds: 100 ), () {
772
+
773
+ log ("Forwaring the video" , name: "Video Player" );
774
+ Future .delayed (const Duration (milliseconds: 200 ), () {
771
775
controller.setPlaybackSpeed (selectedSpeed);
772
776
});
773
777
}
You can’t perform that action at this time.
0 commit comments