Skip to content

stopAllPlayers hook not working correctly on android. #200

Description

@anxheloo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions