diff --git a/packages/video_player/video_player/lib/video_player.dart b/packages/video_player/video_player/lib/video_player.dart index a8efbda078c013e25967cb67ec205ee743a1701a..e659dbb53abe6a0d8b060069e6b8264770bbbe3f 100644 --- a/packages/video_player/video_player/lib/video_player.dart +++ b/packages/video_player/video_player/lib/video_player.dart @@ -468,7 +468,11 @@ class VideoPlayerController extends ValueNotifier { // position=value.duration. Instead of setting the values directly, // we use pause() and seekTo() to ensure the platform stops playing // and seeks to the last frame of the video. - pause().then((void pauseResult) => seekTo(Duration.zero)); + if (Platform.operatingSystem == "ohos") { + pause().then((void pauseResult) => value = value.copyWith(position: value.duration)); + } else { + pause().then((void pauseResult) => seekTo(value.duration)); + } break; case VideoEventType.bufferingUpdate: value = value.copyWith(buffered: event.buffered);