How stalled recordings recover
The call page watches each recorder. When no data arrives for RECORDER_STALL_WATCHDOG_MS (20000 ms), the recording counts as stalled and recovery starts. All settings apply from the next page load.
Customer side (RECORDER_STALL_RECOVERY_ENABLED, on)
- The agent sees a waiting overlay; no error yet.
- The call page switches the customer's camera to the other camera and back, a few times, for up to about 15 seconds.
- It always ends on the camera the customer started with.
- If frames come back, recovery ends. If not, the agent sees the error.
Skipped during a short connection drop and while the customer app holds the camera (camera handover).
Agent side (LOCAL_RECORDER_STALL_RECOVERY_ENABLED, on)
- First stall signal: the agent's recorder is restarted. If the agent's camera sends no frames, the camera is taken again first.
- Next signal: the camera is taken again and the recorder restarted.
- Next signal: the agent sees the error.
If no new stall comes for 1.5 watchdog periods after a step, the step worked and the steps start over.
The customer side is never restarted with the agent side
Each side has its own recorder. Agent-side recovery restarts only the agent's recorder and camera; the customer recording keeps writing. The customer recording is the one kept as evidence, so no recovery step risks it to fix the agent side.
When the agent sees the error
- "Recording stalled for remote stream" (customer) or "for local stream" (agent): recovery did not bring frames back.
- The recording file stays open. When frames come back, recording continues in the same file; only the frozen part is missing.
- Agent: ask the customer to switch the camera or check their connection. If an identity or consent step fell into the frozen part, repeat it.
Lowering RECORDER_STALL_WATCHDOG_MS finds stalls sooner but can raise false alarms on slow PCs.
No comments to display
No comments to display