diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 8ebba8c5..6f854efb 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -717,7 +717,7 @@ public class ReactExoplayerView extends FrameLayout implements public void getCurrentPosition(Promise promise) { if (player != null) { - double currentPosition = player.getCurrentPosition() / 1000; + float currentPosition = player.getCurrentPosition() / 1000.0f; promise.resolve(currentPosition); } else { promise.reject("PLAYER_NOT_AVAILABLE", "Player is not initialized.");