Skip to content

Loading multiple files bug #23

Description

@davidpaulrosser

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 ?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions