Fix handling of VideoDecoder.isConfigSupported()

It returns an object with details, not just a simple boolean.
This commit is contained in:
Pierre Ossman 2024-11-20 10:46:52 +01:00
parent 88a5a59629
commit 43326eb67b
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}