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

SoundPlayer.onFinishedLoading(this.loadedSound) doesn't wait to load #56

Closed
unutoiul opened this issue Jun 13, 2019 · 1 comment
Closed

Comments

@unutoiul
Copy link

unutoiul commented Jun 13, 2019

SoundPlayer.onFinishedLoading(this.loadedSound);
loadedSound(data) {
        console.log(data); --> always true
    }

doesn't wait to load and is triggering the event straight away and is always loaded with success.

never received and error.

@johnsonsu
Copy link
Owner

Hi @unutoiul, yes this function will always return true. In fact, when playSoundFile, playUrl functions fail, they will throw an native error immediately and onFinishedLoading will not be called.

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

2 participants