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

M4A Audio is not handled #26

Closed
thoni56 opened this issue Apr 8, 2019 · 3 comments
Closed

M4A Audio is not handled #26

thoni56 opened this issue Apr 8, 2019 · 3 comments

Comments

@thoni56
Copy link

thoni56 commented Apr 8, 2019

Apple format audio is converted to octetstream. A file with this signature (using file):

... ISO Media, Apple iTunes ALAC/AAC-LC (.M4A) Audio

will result in

data:application/octet-stream;base64,AAAAIGZ0e...

This cannot be played by the HTMLAudioElement.

@heldr
Copy link
Member

heldr commented Apr 16, 2019

Sorry for the delay.

Apparently this extension is not part of IANA's Media types spec as per https://www.iana.org/assignments/media-types/media-types.xhtml#audio , which is followed by datauri submodule https://github.com/data-uri/mimer

Other than that, I believe is a good idea to allow custom mimetypes in datauri as per mimer submodule.

@heldr
Copy link
Member

heldr commented Apr 17, 2019

mimer parses apache mime types file(based on IANA's spec), the good news is that m4a will be supported on next datauri release 😄

As per mime.types from Apache:

audio/mp4					m4a mp4a

@heldr
Copy link
Member

heldr commented Apr 17, 2019

@heldr heldr closed this as completed Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants