Configure streaming modes and encoder settings
mainMirageKit supports three primary streaming modes:
- Window: Captures a single window using ScreenCaptureKit.
- App: Groups windows by bundle identifier and follows new windows as they spawn.
- Desktop: Mirrors a virtual display sized to the client for 1:1 pixel mapping.
For fine-grained control, use MirageEncoderConfiguration to adjust codec, frame rate, encoder quality, and bit depth. Clients can also request per-stream tweaks using MirageEncoderOverrides.