Created
June 21, 2017 15:25
-
-
Save matthieu-D/801c4fdd7925eb7bf5b88f48fb11b31e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NativeAudio } from '@ionic-native/native-audio'; | |
. | |
. | |
. | |
export class HomePage { | |
constructor(public nativeAudio: NativeAudio) { | |
nativeAudio.preloadComplex('track1', 'assets/audio/track1.mp3', 1, 1, 0).then(this.onSuccessPreloading, this.onError); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment