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

Loaded successfully but tells loading failed. #146

Open
Domvel opened this issue Feb 22, 2018 · 0 comments
Open

Loaded successfully but tells loading failed. #146

Domvel opened this issue Feb 22, 2018 · 0 comments

Comments

@Domvel
Copy link

Domvel commented Feb 22, 2018

This code (executed in app.component.ts (as a provider) in platform.ready method.)

 this.audio.preloadSimple('test', 'assets/snds/test.wav').then(() => {
      console.log('Sound "test.wav" successfully loaded.');
    }).catch(() => {
      console.log('Sound "test.wav" loading failed.');
    });

prints: 'Sound "test.wav" loading failed.'
But the sound can successfully played with the audio.play-method.
The promise is a lie!

ionic native audio: 4.5.3
cordova native audio: 3.0.9

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