sono
sono copied to clipboard
Loading multiple files bug
I just tested the following case where loading multiple broken urls with one correct url resolves in a successful load.
const sound = sono.load({
src: [
'/assets/audio/dnb-loop.mp3',
'/assets/audio/dnb-loop.gg',
'/assets/audio/dnb-loop.pus'
],
onComplete: () => {
console.log('loaded'); // eslint-disable-line no-console
window.testCase.loaded = true;
},
onError: () => {
console.log('error'); // eslint-disable-line no-console
window.testCase.loaded = false;
}
});
Ideally the load should fail if any of the files fails to load. What do you think @ianmcgregor ?