sindresorhus / file-type

Detect the file type of a Buffer/Uint8Array/ArrayBuffer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

audio/mpeg detected as video/webm or video/mp4

bramvbilsen opened this issue · comments

Very similar to this issue #488.

I am using the MediaRecorder API to record audio in the audio/mpeg format. Upon checking the mimetype using file-type, I get either video/mp4 on Safari and video/webm on all other browsers.

As I do not support video uploads, it is an easy workaround. But a workaround nonetheless.
Is this something others can reproduce as well?