Skip to content

Add Windows-only detachable live camera preview window #22

Description

@jochenwezel

PTZControl2 should optionally show a separate independent live preview window for the selected camera.\n\nScope:\n- Windows-only implementation is acceptable for the first version.\n- Hide the Live Preview button on non-Windows platforms.\n- Prefer DirectShow first because the project already uses DirectShow/device paths.\n- A separate native/WinForms/Win32 preview window is acceptable and probably simpler than embedding video directly into Avalonia.\n- PTZControl2 remains the main Avalonia UI; the preview window can be opened/closed independently.\n\nBehavior:\n- Button opens live preview for the currently selected camera.\n- If the camera/video stream is already locked by another application or cannot be opened, show a clear error in the PTZControl2 status bar and use the normal warning status color.\n- Closing the preview window must release camera/DirectShow resources.\n- Preview must not block PTZ controls.\n\nOpen questions:\n- DirectShow preview graph vs. WinRT MediaCapture fallback.\n- Whether PTZ control and preview can safely use the same selected camera at the same time for PTZ Pro 2.\n- Packaging requirements for Windows-only preview dependencies.\n\nAcceptance criteria:\n- Windows build exposes a Live Preview action.\n- Non-Windows builds hide or disable the feature cleanly.\n- Preview opens selected camera or reports a non-crashing statusbar error.\n- Resources are released when the preview window closes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions