Skip to content

Handling Unpredictable MediaError AUDIO_RENDERER_ERROR with HTML Audio Element #107

@9903SV

Description

@9903SV
crunker
     .fetchAudio('./audio_1.mp3', './audio_2.mp3')
     .then(buffers => {
        // => [AudioBuffer, AudioBuffer]
        return crunker.mergeAudio(buffers)
     })
     .then(merged => {
        // => AudioBuffer
        return crunker.export(merged, 'audio/mp3')
     })
     .then(output => {
        crunker.download(output.blob)
        document.body.append(output.element)
        console.log('output url', output.url)
     })
     .catch(error => {
        // => Error Message
     })

When attempting to play the audio url from crunker using the HTML audio element, it sometimes fails to play, resulting in a MediaError with the message 'AUDIO_RENDERER_ERROR' and error code 3. When trying to play multiple times, the audio starts to play randomly.

We have also reported the same issue in Chromium -> https://issues.chromium.org/issues/333024284.

Please let us know if there are any insights regarding the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions