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