()
| 2385 | } |
| 2386 | |
| 2387 | _sendEncodings() { |
| 2388 | const encs = []; |
| 2389 | |
| 2390 | // In preference order |
| 2391 | encs.push(encodings.encodingCopyRect); |
| 2392 | // Only supported with full depth support |
| 2393 | if (this._fbDepth == 24) { |
| 2394 | if (supportsWebCodecsH264Decode) { |
| 2395 | encs.push(encodings.encodingH264); |
| 2396 | } |
| 2397 | encs.push(encodings.encodingTight); |
| 2398 | encs.push(encodings.encodingTightPNG); |
| 2399 | encs.push(encodings.encodingZRLE); |
| 2400 | encs.push(encodings.encodingJPEG); |
| 2401 | encs.push(encodings.encodingHextile); |
| 2402 | encs.push(encodings.encodingRRE); |
| 2403 | encs.push(encodings.encodingZlib); |
| 2404 | } |
| 2405 | encs.push(encodings.encodingRaw); |
| 2406 | |
| 2407 | // Psuedo-encoding settings |
| 2408 | encs.push(encodings.pseudoEncodingQualityLevel0 + this._qualityLevel); |
| 2409 | encs.push(encodings.pseudoEncodingCompressLevel0 + this._compressionLevel); |
| 2410 | |
| 2411 | encs.push(encodings.pseudoEncodingDesktopSize); |
| 2412 | encs.push(encodings.pseudoEncodingLastRect); |
| 2413 | encs.push(encodings.pseudoEncodingQEMUExtendedKeyEvent); |
| 2414 | encs.push(encodings.pseudoEncodingQEMULedEvent); |
| 2415 | encs.push(encodings.pseudoEncodingExtendedDesktopSize); |
| 2416 | encs.push(encodings.pseudoEncodingXvp); |
| 2417 | encs.push(encodings.pseudoEncodingFence); |
| 2418 | encs.push(encodings.pseudoEncodingContinuousUpdates); |
| 2419 | encs.push(encodings.pseudoEncodingDesktopName); |
| 2420 | encs.push(encodings.pseudoEncodingExtendedClipboard); |
| 2421 | encs.push(encodings.pseudoEncodingExtendedMouseButtons); |
| 2422 | |
| 2423 | if (this._fbDepth == 24) { |
| 2424 | encs.push(encodings.pseudoEncodingVMwareCursor); |
| 2425 | encs.push(encodings.pseudoEncodingCursor); |
| 2426 | } |
| 2427 | |
| 2428 | RFB.messages.clientEncodings(this._sock, encs); |
| 2429 | } |
| 2430 | |
| 2431 | /* RFB protocol initialization states: |
| 2432 | * ProtocolVersion |
no outgoing calls
no test coverage detected