Hi all,
I’ve been struggling to figure this out all week. I have 2 mp3s where one plays right after the other. The first one is 4 secs long and with the object singingBowlInstance, while the second is playbackInstance.
As you can see in this part of the code, when the first mp3 finishes the second one begins. This works fine on the IOS simulator - but on my iphone using the expo client, the first audio plays but not the second, or the second one is playing (per the console log on the object), but no sound is coming out.
Oddly, if I switch the stop and play statements it works. But I have no idea why I’m getting this difference between the simulator and the phone (note: I’m on a very fast network, so this isn’t about the mp3s not loading - I’ve checked that)
this.singingBowlInstance.setOnPlaybackStatusUpdate(status => {
if (status["didJustFinish"]) {
this.singingBowlInstance.stopAsync();
this.playbackInstance.playAsync();
}
});
Thanks for any insights you might have here.