Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling Unpredictable MediaError AUDIO_RENDERER_ERROR with HTML Audio Element #107

Open
9903SV opened this issue Apr 6, 2024 · 0 comments

Comments

@9903SV
Copy link

9903SV commented Apr 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant