Fix handling of VideoDecoder.isConfigSupported()
It returns an object with details, not just a simple boolean.
This commit is contained in:
parent
88a5a59629
commit
43326eb67b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue