Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio not playing[BUG] #149

Open
Tadejo9 opened this issue Sep 5, 2022 · 0 comments
Open

Audio not playing[BUG] #149

Tadejo9 opened this issue Sep 5, 2022 · 0 comments

Comments

@Tadejo9
Copy link

Tadejo9 commented Sep 5, 2022

React-native 0.69.4
Library 0.13.2

Describe the bug
Audio is not playing from url and i keep getting a error that listener is not registered. Android and ios

To Reproduce
Steps to reproduce the behavior:

      const subscription = SoundPlayer.addEventListener('FinishedLoadingURL', (data) => {
        try {
          SoundPlayer.playUrl("https://www2.cs.uic.edu/~i101/SoundFiles/CantinaBand60.wav")
        } catch (error) {
          console.log("Play audio")
          console.log(error)
        }
      })
  
      SoundPlayer.loadUrl("https://www2.cs.uic.edu/~i101/SoundFiles/CantinaBand60.wav")
      console.log('Loading url...')

      return () => {
        subscription.remove();
      }

Expected behavior
Audio to load and play

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant