Hello there,
I’m trying to make the fade in / fade out effect using the Native Audio Plugin and its does nothing. The music simply play without any delay.
I tested it on Browser and Android 7.1 . I have the following code:
playmusic(){
this.nativeAudio.play('audio');
}
loadmusic(path: string){
if(this.loader){
this.playmusic();
}
else{
this.nativeAudio.preloadComplex('audio', path, 1, 1, 5000).then(() => {
this.nativeAudio.play('audio');
this.loader = true;
});
}
}
(The ‘5000’ was for testing purposes, it doesn’t work with smallest numbers either)
Everything works but the delay feature. Anyone?