mirror of
https://github.com/videojs/video.js.git
synced 2024-12-04 10:34:51 +02:00
feat: Add support for CAF, FLAC and WAV formats in known mimetypes (#6657)
Following https://en.wikipedia.org/wiki/HTML5_audio#Supported_audio_coding_formats and https://hpr.dogphilosophy.net/test/index.php . These are formats that are supported on some (most?) browsers. Tested with a patched version of seafile. The flac and wav files correctly plays on chromium on my Linux laptop and the caf file plays on my iPad. (Chromium appears to play the caf file just fine but claim to not support it.) Of course not all browsers support these but according to #5982 and my test result I assume the browser detection is implemented somewhere else already.
This commit is contained in:
parent
3d505ef0c5
commit
8d462bcab0
@ -17,7 +17,10 @@ export const MimetypesKind = {
|
|||||||
m4a: 'audio/mp4',
|
m4a: 'audio/mp4',
|
||||||
mp3: 'audio/mpeg',
|
mp3: 'audio/mpeg',
|
||||||
aac: 'audio/aac',
|
aac: 'audio/aac',
|
||||||
|
caf: 'audio/x-caf',
|
||||||
|
flac: 'audio/flac',
|
||||||
oga: 'audio/ogg',
|
oga: 'audio/ogg',
|
||||||
|
wav: 'audio/wav',
|
||||||
m3u8: 'application/x-mpegURL',
|
m3u8: 'application/x-mpegURL',
|
||||||
jpg: 'image/jpeg',
|
jpg: 'image/jpeg',
|
||||||
jpeg: 'image/jpeg',
|
jpeg: 'image/jpeg',
|
||||||
|
Loading…
Reference in New Issue
Block a user