Open benhkwoo opened 5 months ago
I'm having the exact same issue, with setPitch as well
I'm have the same issue too, have you any solutions?
Try this code!!
const play = async (soundInit, callBack, isSlow) => { if (soundInit) { try { Sound.setCategory('Playback');
if (isSlow)
soundInit.setSpeed(0.7)
soundInit.play(callBack);
if (isSlow && Platform.OS === 'android') {
setTimeout(() => {
console.log(soundInit.getDuration())
callBack()
}, soundInit.getDuration() * 1000);
}
} catch (error) {
console.log(error);
}
}
};
:beetle: Description
onEnd callback is not fired on Android if setSpeed()
:beetle: What is the observed behavior?
onEnd callback is not fired on Android if setSpeed() before play().
:beetle: Please post your code:
Is your issue with...
Are you using...
react-native run-android
)Which versions are you using?
Does the problem occur on...
If your problem is happening on a device, which device?