react-native-audio-recorder-player icon indicating copy to clipboard operation
react-native-audio-recorder-player copied to clipboard

Error: mediaPlayer is null on seek

Open bekatd opened this issue 1 year ago • 2 comments

When the track finishes playing, if I try to seek player, I am getting error: Error: mediaPlayer is null on seek

"react-native-audio-recorder-player": "^3.5.1" "react-native": "0.67.4"

Platform: Android emulator

Expected behavior

It should allow me to seek player, after player finished playing the track

Actual behavior

When I seek player, I am getting error: Error: mediaPlayer is null on seek

Steps to reproduce the behavior

Try to seek player, when it finishes current track

www_screencapture_com_2022-9-17_12_04.webm

bekatd avatar Sep 17 '22 08:09 bekatd

DT7LB68ju4

This is currently only available when mediaPlayer has not stopped. How about startPlayer then use seeking?

hyochan avatar Oct 15 '22 11:10 hyochan

@bekatd did you find a solution? also having this issue

deflexable avatar Jun 10 '23 21:06 deflexable