Viewerframe Mode Refresh

"Viewerframe mode refresh" is the silent engine that keeps your security footage live and synchronized. Whether it's an automated script in the camera’s firmware or a manual button you click, it ensures that what you see on your screen matches exactly what is happening in front of the lens.

Test environment: Chromium-based viewer, software rasterizer disabled, hardware blitting. viewerframe mode refresh

Forcing a screen update when the network connection causes "ghosting." "Viewerframe mode refresh" is the silent engine that

The viewerframe mode refresh mechanism enables developers to programmatically trigger a reload or state reset of an embedded content viewer. This is particularly useful when the underlying data changes, or when toggling between different viewing contexts (e.g., switching from a "Draft" view to a "Published" view). Forcing a screen update when the network connection

| Symptom | Root Cause | Fix | | :--- | :--- | :--- | | | The decoder lost codec context. | Re-negotiate the SDP (Session Description Protocol) with the streaming source. | | Refresh takes 3+ seconds | The viewerframe is in sync mode waiting for a disk-cached frame. | Switch to async mode or increase network buffer. | | Screen flashes white | The GPU is reinitializing the shader pipeline. | Enable "Double Buffering" before the refresh. | | Audio continues but video freezes after refresh | PID (Packet ID) mismatch. The refresh did not reselect the video PID. | Manually reselect the video track via viewer.setTrack(1) . |

// Restart the stream from the last keyframe viewer.requestKeyFrame();