onEnd callback is not fired on Android if setSpeed()
benhkwoo opened this issue · comments
🪲 Description
onEnd callback is not fired on Android if setSpeed()
🪲 What is the observed behavior?
onEnd callback is not fired on Android if setSpeed() before play().
🪲 Please post your code:
var whoosh = new Sound('whoosh.mp3', Sound.MAIN_BUNDLE, (error) => {
if (error) {
console.log('failed to load the sound', error);
return;
}
whoosh.setSpeed(NUMBER)
whoosh.play((success) => {
// onEnd callback will not fire if I set speed before play(). It occurs only on Android
if (success) {
console.log('successfully finished playing');
} else {
console.log('playback failed due to audio decoding errors');
}
});
});
Is your issue with...
- iOS
- [V] Android
- Windows
Are you using...
- [V] React Native CLI (e.g.
react-native run-android
) - Expo
- Other: (please specify)
Which versions are you using?
- React Native Sound: 0.11.2
- React Native: 0.72.4
- iOS: 17.x (working properly)
- Android: version: 14, API: 34
- Windows: Did not test.
Does the problem occur on...
- Simulator
- [V] Device
If your problem is happening on a device, which device?
- Device: SM-G998N