I'm using Expo-AV and I'm trying to find a simple way to play 3 audio files after another.
I can't find anything online, does anyone have experience with Expo-AV?
Much appreciated.
CodePudding user response:
The docs for expo-av show an example that plays from a playlist of media. It's a bit of a wordy example since it covers a lot of cases, but it does what you want it to do.
This line shows how they initialize Audio.Sound.createAsync
- the third argument is a callback that runs when the playback state changes. In that callback, you can check if the audio has finished playing, and play the next sound if so. The example does this here.
CodePudding user response:
I unfortunately didn't have much luck with that either. The docs are pretty bad and the examples are all class based which I haven't done before