1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-03 09:39:16 +02:00

Add support for FLAC in sniffer and codecs package.

This commit is contained in:
Jeff Schiller 2023-02-05 19:39:04 -08:00
parent 44beb992bf
commit 303c635b90
5 changed files with 17 additions and 4 deletions

View file

@ -47,6 +47,13 @@ describe('codecs test suite', () => {
})).equals('audio/mpeg');
});
it('detects FLAC', () => {
expect(getShortMIMEString({
format: { format_name: 'flac' },
streams: [ { codec_type: 'audio'}, { codec_type: 'video' } ],
})).equals('audio/flac');
});
it('detects AVI video', () => {
expect(getShortMIMEString({
format: { format_name: 'avi' },