Skip to content

Commit

Permalink
Hotfix in OffscreenDecodeWorker
Browse files Browse the repository at this point in the history
- This push created a nested array
- We want the returnvalue, not the function itself
  • Loading branch information
TijZwa authored Oct 25, 2022
1 parent 21cabde commit 10d97fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions html5/js/OffscreenDecodeWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ const image_coding = [
"avif",
];
const video_coding = [];
if (XpraVideoDecoderLoader.hasNativeDecoder) {
if (XpraVideoDecoderLoader.hasNativeDecoder()) {
// We can support native H264 & VP8 decoding
video_coding.push(["h264", "vp8", "vp9"]);
video_coding.push("h264");
video_coding.push("vp8");
video_coding.push("vp9");
} else {
console.warn(
"Offscreen decoding is available for images only. Please consider using Google Chrome 94+ in a secure (SSL or localhost) context h264 offscreen decoding support."
Expand Down

0 comments on commit 10d97fe

Please sign in to comment.