Viewerframe Mode - Refresh
// Trigger the refresh via a watchdog timer setInterval(() => if (viewer.getFPS() < 5) // If FPS drops below threshold forceRefresh();
// Restart the stream from the last keyframe viewer.requestKeyFrame();
In the world of real-time video streaming, simulations, and high-performance computing displays, few things are as frustrating as a frozen frame, screen tearing, or the dreaded "ghosting" of a previous data set. This is where the often-overlooked yet critical parameter known as Viewerframe Mode Refresh comes into play. viewerframe mode refresh
// Reset the decoder context viewer.resetDecoder();
// Step 3: Force a hard reset of the mode function forceRefresh() // Disable rendering temporarily viewer.stopRendering(); // Trigger the refresh via a watchdog timer
// Clear the internal frame buffer viewer.clearFrameBuffer();
// Step 1: Capture the viewerframe object const viewer = document.getElementById('video-wall-canvas'); // Step 2: Store the current operational mode const currentMode = viewer.getViewerMode(); // Returns 'realtime' or 'buffer' Here is the troubleshooting matrix:
, 10000); // Check every 10 seconds Even with a proper viewerframe mode refresh , things can go wrong. Here is the troubleshooting matrix: