Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

Howler.js how to play HTML5 file with preload of metadata

$
0
0

Hi to All

I’m searching a solution to play an audio file via Howler.js in a Ionic Project with HTML5 flag true. The problem is in update a seek bar that I’ve created. Reading the documentation I’ve founded that exist an option “preload” setting that to ‘metadata’ allows to download file metadata (even duration of the file), i’ve tried to use this option but without result, this is the sample code of the use of howler:

ngOnInit() {
this.idTrack = this.player = new Howl({
src: [‘https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3’],
html5: true,
format: [‘mp3’],
preload: ‘metadata’,
onplay: () => {
this.updateProgress();
},
onend: () => {
this.buttonIcon = “play”;
}
});
}

There is any Suggestion to make this solution working?

Thanks in advance

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>