From eba5d8619d4cd53fcdec37752d413b3eb8d807de Mon Sep 17 00:00:00 2001 From: hyochan Date: Tue, 31 Oct 2023 21:03:51 +0900 Subject: [PATCH] fix: currentPosition output --- .../RNAudioRecorderPlayerModule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/dooboolab.audiorecorderplayer/RNAudioRecorderPlayerModule.kt b/android/src/main/java/com/dooboolab.audiorecorderplayer/RNAudioRecorderPlayerModule.kt index f5ecf749..d0ee567f 100644 --- a/android/src/main/java/com/dooboolab.audiorecorderplayer/RNAudioRecorderPlayerModule.kt +++ b/android/src/main/java/com/dooboolab.audiorecorderplayer/RNAudioRecorderPlayerModule.kt @@ -255,7 +255,7 @@ class RNAudioRecorderPlayerModule(private val reactContext: ReactApplicationCont */ val obj = Arguments.createMap() obj.putInt("duration", mp.duration) - obj.putInt("currentPosition", mp.duration) + obj.putInt("currentPosition", mp.currentPosition) sendEvent(reactContext, "rn-playback", obj) /** * Reset player.