session_init_image
¶
Persist the initial-image blob attached to a streaming session.
Classes¶
fastvideo.entrypoints.streaming.session_init_image.SessionInitImage
dataclass
¶
Location of the persisted init image.
Callers pass path to InputConfig.image_path; display_name
is only used for logs.
Functions¶
fastvideo.entrypoints.streaming.session_init_image.persist_session_init_image
¶
persist_session_init_image(payload: Any, *, output_dir: str | None = None) -> SessionInitImage | None
Decode a client init-image blob and persist it to disk.
payload shape (matches the internal UI protocol)::
{
"mime": "image/png",
"name": "ref.png",
"data": "<base64 bytes>",
}
Returns None when payload is falsy (no init image). Raises
:class:ValueError on schema / size / decode errors so the caller
can surface a user-facing error frame.