react-native-sound icon indicating copy to clipboard operation
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?

Open rahultib10 opened this issue 7 years ago • 2 comments

rahultib10 avatar Dec 03 '18 07:12 rahultib10

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))

murilobast avatar Apr 15 '19 01:04 murilobast

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

n-ii-ma avatar Feb 26 '23 10:02 n-ii-ma