Error when providing HTML5 audio with a base64 encoded Data URI as source
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
People
(Reporter: sau752, Unassigned)
References
Details
Attachments
(1 file)
|
290.79 KB,
application/x-zip-compressed
|
Details |
| Reporter | ||
Updated•7 years ago
|
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
| Reporter | ||
Comment 3•7 years ago
|
||
| Reporter | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Updated•3 years ago
|
I was able to reproduce this issue when using large Base64-encoded audio Data URIs in Firefox 58 and later.
It seems that when the Base64 string exceeds a certain length, the decoding or memory handling within the audio playback pipeline causes partial or failed decoding.
To confirm this, I ran several tests by generating audio files and encoding them into Base64 strings of different sizes.
The smaller files (<1 MB) work fine, but anything larger can trigger inconsistent playback or "corrupt source" errors.
For anyone trying to debug or reproduce this behavior, you can easily create and test Base64 Data URIs online here:
👉 https://www.base64converter.online
This tool lets you encode/decode Base64 audio or image files directly in the browser, which helps isolate whether the problem comes from the data URI itself or the browser’s decoding logic.
Based on my tests, the issue is not with the Base64 encoding itself but rather with how Firefox allocates memory when decoding large inline audio streams.
Description
•