Skip to content

Commit

Permalink
Bugfix: Update video_max_size when offsceen_api flag is changed
Browse files Browse the repository at this point in the history
This fixes #287
  • Loading branch information
totaam authored and timeu committed Feb 15, 2024
1 parent b7a937d commit 69c4e7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ class XpraClient {
return;
}
this.offscreen_api = DECODE_WORKER && XpraOffscreenWorker.isAvailable(this.ssl);
if (this.offscreen_api) {
self.set_encoding_option('video_max_size',[4096, 4096]);
}
this.clog("we have webworker support");
// spawn worker that checks for a websocket
const worker = new Worker("js/lib/wsworker_check.js");
Expand Down

0 comments on commit 69c4e7d

Please sign in to comment.