react-native-sound
react-native-sound copied to clipboard
To play 1 minute sound clips. Is there a way to make the audio loops seamless without gaps? Are there any other libraries that have this feature?
I had the same issue, I'm using a recursive function to deal with looped playback.
ex:
const onSuccess = audio => success => {
console.log('audio finished playing', success)
if (success) {
console.log('playing again')
audio.play(onSuccess(audio))
}
}
audio.play(onSuccess(audio))
I had the same issue, I'm using a recursive function to deal with looped playback.
ex:
const onSuccess = audio => success => { console.log('audio finished playing', success) if (success) { console.log('playing again') audio.play(onSuccess(audio)) } } audio.play(onSuccess(audio))
Didn't work