Skip to content

Commit

Permalink
Fix handling of VideoDecoder.isConfigSupported()
Browse files Browse the repository at this point in the history
It returns an object with details, not just a simple boolean.
  • Loading branch information
CendioOssman committed Nov 20, 2024
1 parent 88a5a59 commit 43326eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test.h264.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ async function haveH264Decode() {
optimizeForLatency: true,
};

_haveH264Decode = await VideoDecoder.isConfigSupported(config);
let support = await VideoDecoder.isConfigSupported(config);
_haveH264Decode = support.supported;

return _haveH264Decode;
}

Expand Down

0 comments on commit 43326eb

Please sign in to comment.