adds qualityLevel property to RFB class for updating JPEG quality level encoding on the fly

This commit is contained in:
Andrey Trebler
2020-02-10 12:44:36 +01:00
parent ceb8ef4ec1
commit efd1f8a4f2
4 changed files with 138 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC Authors
* Copyright (C) 2020 The noVNC Authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)
*/
@@ -52,3 +52,10 @@ if (typeof Object.assign != 'function') {
window.CustomEvent = CustomEvent;
}
})();
/* Number.isInteger() (taken from MDN) */
Number.isInteger = Number.isInteger || function isInteger(value) {
return typeof value === 'number' &&
isFinite(value) &&
Math.floor(value) === value;
};