Skip to content

Commit

Permalink
fix(MediaCap): Fix VP9 codec unit test
Browse files Browse the repository at this point in the history
Change-Id: I7d82cb3dcb01be702dcbc9084df55c8db9493b58
  • Loading branch information
michellezhuogg committed Apr 29, 2021
1 parent 3698f49 commit df1a110
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/util/stream_utils_unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,9 @@ describe('StreamUtils', () => {
});

it('supports VP9 codec', async () => {
if (!MediaSource.isTypeSupported('video/webm; codecs="vp9"')) {
pending('Codec VP9 is not supported by the platform.');
}
manifest = shaka.test.ManifestGenerator.generate((manifest) => {
manifest.addVariant(0, (variant) => {
variant.addVideo(1, (stream) => {
Expand All @@ -646,6 +649,7 @@ describe('StreamUtils', () => {
await shaka.util.StreamUtils.filterManifest(
fakeDrmEngine, /* currentVariant= */ null, manifest,
/* useMediaCapabilities= */ true);

expect(manifest.variants.length).toBe(1);
});
});
Expand Down

0 comments on commit df1a110

Please sign in to comment.