Where you are: docs → reference → api → graphics-html5 Read this first: api.md See also: html5-graphics.md · integration/cef-protocol.md · api/graphics.md
TL;DR Eight endpoints drive the out-of-process CEF (Chromium Embedded Framework) sidecar for browser-rendered graphics. A template catalog is exposed for discovery; per-layer load/play/stop/next/custom/data-update and unload endpoints wire one browser instance to one graphics layer. Returns empty responses when the CEF sidecar is not configured.
Purpose: list available HTML5 templates discovered by the CEF sidecar.
Handler: control/api_html5gfx.go → (*API).handleHTML5Templates.
Response 200: []htmlgfx.TemplateInfo. Empty array when no CEF sidecar is configured (rather than 501).
Purpose: allocate a browser instance for the layer and load a URL.
Handler: (*API).handleHTML5Load.
Request body (control.html5LoadRequest):
{ "url": "https://example.com/lowerthird.html", "data": { "title": "John Doe" } }The data field is forwarded to the sidecar which passes it to the template via the OGraf adapter. See html5-graphics.md.
Errors: 400 (bad id, invalid JSON), 501 (sidecar not configured / not started), plus any CEF allocation failure.
Purpose: stop and free the browser instance on a layer.
Handler: (*API).handleHTML5Unload.
Response 204.
Purpose: update the template's data model without reloading the page.
Handler: (*API).handleHTML5UpdateData.
Request body (control.html5UpdateDataRequest): { "data": { "title": "Jane Doe" } }.
Purpose: trigger the template's play animation.
Handler: (*API).handleHTML5Play.
Purpose: trigger the template's stop animation.
Handler: (*API).handleHTML5Stop.
Purpose: advance the template to the next scene (for multi-page templates).
Handler: (*API).handleHTML5Next.
Purpose: invoke a template-defined custom action.
Handler: (*API).handleHTML5Custom.
Request body (control.html5CustomRequest): { "action": "highlight", "payload": { "color": "#ff0" } }.
- Reference: api.md · api/graphics.md
- Integration: cef-protocol.md
- Concepts: html5-graphics.md