Open parthpanchalTAI opened 4 months ago
same here
@parthpanchalTAI when I add 'Background processing' to the my project, it seems working fine but it's still not stable. 2-3 sessions working fine but some it's not. Before adding this, it was not working at all.
Hi @saribalorhan @parthpanchalTAI, Please make sure you defined the constant of audio player outside the component.
import....
const audioRecorderPlayer = new AudioRecorderPlayer();
const App()=>{}
const audioRecorderPlayer = new AudioRecorderPlayer();
const onPausePlay = async () => { await audioRecorderPlayer.audioRecorderPlayer.pausePlayer(); };
const onStopPlay = async () => { console.log('onStopPlay'); await audioRecorderPlayer.stopPlayer(); audioRecorderPlayer.removePlayBackListener(); };
This two methods are not working, audio is continuous play on background, in both android and ios