From af6aea8934e19467e1ed8e21808b2dbddb6f6356 Mon Sep 17 00:00:00 2001 From: Gyanendro Kh Date: Tue, 13 Feb 2024 19:28:53 +0530 Subject: [PATCH] fix(android): onSeek called instantly (#3530) --- .../main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 55d7dd1a..3d21381f 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -1889,8 +1889,8 @@ public class ReactExoplayerView extends FrameLayout implements public void seekTo(long positionMs) { if (player != null) { + seekTime = positionMs; player.seekTo(positionMs); - eventEmitter.seek(player.getCurrentPosition(), positionMs); } }