← API
Symbol

pickSource

Signatures

  • pickSource ( urls: unknown ): string
    Given a list of URLs (e.g. ['sfx.webm', 'sfx.m4a']), return the first one the browser claims it can play. If none match — or there's no DOM, e.g. during SSR — return the first URL and let decodeAudioData decide.