sono icon indicating copy to clipboard operation
sono copied to clipboard

Loading multiple files bug

Open ameliemaia opened this issue 7 years ago • 0 comments

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 ?

ameliemaia avatar May 11 '17 08:05 ameliemaia