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:
parent
44beb992bf
commit
303c635b90
5 changed files with 17 additions and 4 deletions
|
@ -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' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue