16 lines
513 B
Python
16 lines
513 B
Python
from __future__ import annotations
|
|
|
|
from app.config.models import InfinityMirrorConfig
|
|
from app.core.types import PreviewFrame
|
|
|
|
from .base import OutputBackend, OutputResult
|
|
|
|
|
|
class PreviewOutputBackend(OutputBackend):
|
|
backend_id = "preview"
|
|
display_name = "Preview Only"
|
|
supports_live_output = False
|
|
|
|
def send_frame(self, config: InfinityMirrorConfig, frame: PreviewFrame) -> OutputResult:
|
|
return OutputResult(ok=True, message="Preview-only mode active.", packets_sent=0, device_count=0)
|