Skip to content

Commit

Permalink
fix: currentPosition output
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Oct 31, 2023
1 parent 6060def commit eba5d86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit eba5d86

Please sign in to comment.