-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Hello guys, i am working on a project where based on room index that is triggered by a beacon device, i render a RoomLayout while passing data[roomIndex] as props. In each room layout i render a description, Image, and waveForm for the audio.
I have a unique 'key' prop for the Waveform and the VoiceComponent itself so i dont have problems while using same RoomLayout for different datas.
On Android i have seen an unusuall bug: I go to the first room A, play the audio, go to next room B, dont play, but comes back to room A, than hit play again. BUG: the audio is overriden.
But, if i I go to the first room A, play the audio, go to next room B, play the audio of B, my logic stops every existing audio before starting the new one, than i come back to A and hit play, it works great.
I try to store a global ref for the current playing audio and i try to use that but without success.
BTW: on IOS when i come back to the same playing room it stops it by default.
Every advice would be appriciated.