diff --git a/packages/video_player_videohole/lib/video_player.dart b/packages/video_player_videohole/lib/video_player.dart index c9a7abb9d..8f660bc34 100644 --- a/packages/video_player_videohole/lib/video_player.dart +++ b/packages/video_player_videohole/lib/video_player.dart @@ -513,7 +513,7 @@ class VideoPlayerController extends ValueNotifier { /// has been sent to the platform, not when playback itself is totally /// finished. Future play() async { - if (value.position == value.duration) { + if (value.position == value.duration.end) { await seekTo(Duration.zero); } value = value.copyWith(isPlaying: true); diff --git a/packages/video_player_videohole/pigeons/messages.dart b/packages/video_player_videohole/pigeons/messages.dart index 6c9ecdb21..c184baff0 100644 --- a/packages/video_player_videohole/pigeons/messages.dart +++ b/packages/video_player_videohole/pigeons/messages.dart @@ -82,7 +82,7 @@ class GeometryMessage { int height; } -class DurationMessage{ +class DurationMessage { DurationMessage(this.playerId); int playerId; List? durationRange;