Open eedefeed opened 2 months ago
To add to this, I found a way to trigger this bug (inconsistently) by attempting to pause a song when it is first 'playing'. (Apologies if this code is wrong, I've edited it down a bit from my wrapper class.)
function loadTrack(fullTrackPath) {
let track = new Audic(fullTrackPath);
this.track.addEventListener("playing", () => {
console.log("shouldn't be playing, attempted pause", track.playing);
track.pause();
console.log("after:", track.playing);
}
}, {"once": true});
}
Play and pause sometimes get mixed up, meaning that play causes playback to pause and pause causes playback to play.
I presume this is because of VLC's http API not having independent calls. From the VLC http API wiki page
Does the API return any indication of success / failure ? If so perhaps that can be used to fix this.