Skip to content

Tune video encoding, offscreen rendering, bandwidth caps, and MediaSource video handling on the HTML5 Display client to balance image quality, CPU usage, and network throughput. These parameters are passed as query strings on the display endpoint.

Serves the HTML5 Display client web interface with URL-based configuration. The parameters documented on this page control encoding, offscreen rendering, bandwidth limits, virtual desktop width, and video support flags.

NameInTypeRequiredDescription
encodingquerystringNoVideo encoding type. Use auto for best automatic selection. Accepted values: auto, webp, jpeg, png, rgb, rgb24, rgb32, h264, vp8, vp9, mpeg1, mpeg4+mp4, h264+mp4, vp8+webm, scroll, void. Default: "auto"
offscreenquerybooleanNoUse offscreen canvas for rendering. Default: false
bandwidth_limitqueryintegerNoBandwidth limit in bits per second (0 = unlimited). Default: 0
override_widthquerystringNoOverride virtual desktop width (auto or numeric value). Default: "auto"
videoquerybooleanNoEnable video encoding support. Default: true
mediasource_videoquerybooleanNoEnable MediaSource API for video. Default: true
Terminal window
curl -X GET "https://domain.com/api/v1/display/?encoding=h264&bandwidth_limit=5000000&video=true&mediasource_video=true&offscreen=false&override_width=auto"

The HTML5 Display client interface is returned as text/html.

<!DOCTYPE html>
<html>
<head><title>Hoody Display Client</title></head>
<body>
<!-- Display HTML5 client interface -->
</body>
</html>
import { HoodyClient } from "@hoody/sdk";
const client = new HoodyClient({ apiKey: "<api_key>" });
// Open the display client with H.264 encoding, a 5 Mbps cap,
// MediaSource video enabled, and an automatic virtual desktop width
const html = await client.display.accessClient({
encoding: "h264",
bandwidth_limit: 5000000,
video: true,
mediasource_video: true,
offscreen: false,
override_width: "auto",
});