File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
flutter_vlc_player/lib/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -532,15 +532,15 @@ class VlcPlayerController extends ValueNotifier<VlcPlayerValue> {
532532 /// and silently clamped.
533533 Future <void > seekTo (Duration position) async {
534534 _throwIfNotInitialized ('seekTo' );
535- final Duration correctPosition ;
535+ final Duration newPosition ;
536536 if (position > value.duration) {
537- correctPosition = value.duration;
537+ newPosition = value.duration;
538538 } else if (position < Duration .zero) {
539- correctPosition = Duration .zero;
539+ newPosition = Duration .zero;
540540 } else {
541- correctPosition = position;
541+ newPosition = position;
542542 }
543- await vlcPlayerPlatform.seekTo (_viewId, correctPosition );
543+ await vlcPlayerPlatform.seekTo (_viewId, newPosition );
544544 }
545545
546546 /// Get the video timestamp in millisecond
You can’t perform that action at this time.
0 commit comments