You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make an audio player and I'm using Precise Audio as the audio interface for a javascript code. It's using node and express to route the application, take files from a folder and pass to the updateTracks function :
constaudio=newPreciseAudio();// Array of all music files.letsources=<%-JSON.stringify(audioSources)%>;// Using the ... operator to split every element for the updateTracks function.audio.updateTracks(...sources);// A button was created in the html page so I'm just calling it with a querySelectorletbutton=document.querySelector("#play");button.onclick=(event)=>{audio.play();}
The audio begins fine, but usually when i'm not active on the webpage it just stops and the end of the current tracks. Pushing the play button just continues the queue without any problems and printing the audio.trackStates() shows that it knows when to download the next track.
I'm trying to make an audio player and I'm using Precise Audio as the audio interface for a javascript code. It's using node and express to route the application, take files from a folder and pass to the updateTracks function :
The audio begins fine, but usually when i'm not active on the webpage it just stops and the end of the current tracks. Pushing the play button just continues the queue without any problems and printing the audio.trackStates() shows that it knows when to download the next track.
Is it a limitation of the audio backend, not being able to load all the music files because they are too large for the specifications ?
Hope it was clear, as my first real project working with audio api I'm lost. Thank you by advance !
The text was updated successfully, but these errors were encountered: