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

1.0.6: Return 'vp9' for the video codec in getFullMIMEString(). Also move the annoying warning in deprecated archive.js.

This commit is contained in:
Jeff Schiller 2022-11-25 10:58:12 -08:00
parent d3b8765b42
commit 726feee48f
6 changed files with 16 additions and 14 deletions

View file

@ -261,11 +261,7 @@ describe('codecs test suite', () => {
info.streams[0].level = -99; // I'm not sure what ffprobe means by this.
expect(getFullMIMEString(info))
.to.be.a('string')
.and.satisfy(s => s.startsWith('video/webm; codecs="vp09.'))
.and.satisfy(s => {
const matches = s.match(/vp09\.[0-9]{2}\.([0-9A-F]{2})\.[0-9A-F]{2}/);
return matches && matches.length === 2 && matches[1] === 'FF';
});
.and.equals('video/webm; codecs="vp9"');
});
});