Commit 43326eb for novnc.com
commit 43326eb67b1a77bed7ea90766101aecf1158024e
Author: Pierre Ossman <ossman@cendio.se>
Date: Wed Nov 20 10:46:52 2024 +0100
Fix handling of VideoDecoder.isConfigSupported()
It returns an object with details, not just a simple boolean.
diff --git a/tests/test.h264.js b/tests/test.h264.js
index 42273e7..2f67391 100644
--- a/tests/test.h264.js
+++ b/tests/test.h264.js
@@ -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;
}