Skip to content
Back to home

Capture errors you can act on

Makes native desktop screenshot and recording failures explain what went wrong. Capture diagnostics survive the trip from Electron to the interface instead of turning into a generic failure. When the video source cannot start, the error retains NotReadableError and its message and advises unlocking the capture host, turning its display on, and retrying. This branch improves the explanation and preserves the original capture behavior.

PR
…

Comments

This fork

  1. Preview loaded

    A native desktop preview tab is already loaded while the host is unlocked and its display is on.

  2. Host locked, display off

    The human locks the capture host and turns its display off. The same preview tab stays loaded.

  3. Native video acquisition fails

    The native video source rejects acquisition with NotReadableError: Could not start video source.

  4. Error explains how to retry

    Unable to start the preview video source. Make sure the capture host is unlocked and its display is on, then retry. NotReadableError: Could not start video source

  5. Human restores capture conditions

    Cleanup releases the failed capture. The human follows the guidance, unlocks the host, and turns its display on.

  6. Retry produces a recording

    A fresh recording succeeds using the same preview tab. No app restart or replacement tab is needed.

Retry succeeds on the same preview tab.

Original

  1. Preview loaded

    A native desktop preview tab is already loaded while the host is unlocked and its display is on.

  2. Host locked, display off

    The human locks the capture host and turns its display off. The same preview tab stays loaded.

  3. Native video acquisition fails

    The native video source rejects acquisition with NotReadableError: Could not start video source.

  4. Error hides the useful cause

    Browser recording operation capture-media-stream failed for tab preview-1.

  5. Human restores capture conditions

    For this comparison, the human makes the same change after cleanup. The generic error did not suggest it.

  6. Retry also produces a recording

    The video source now starts on the same preview tab. Capture behavior was not the diagnostics defect.

Retry succeeds, but the error gave no recovery guidance.

Illustrated recording acquisition failure and retry, based on the native Windows proof. Both versions still fail while the source is unavailable and can recover after the human unlocks the host and turns its display on. Diagnostics makes the remedy visible; it does not add the recording fallback from the separate startup branch.