Add go2rtc and extend camera integration for better WebRTC support (#124410)

This commit is contained in:
Robert Resch
2024-10-03 09:20:03 +02:00
committed by GitHub
parent a0a90f03a8
commit 04860ae1d2
35 changed files with 1476 additions and 225 deletions

View File

@@ -17,16 +17,13 @@ from homeassistant.util.hass_dict import HassKey
if TYPE_CHECKING:
from homeassistant.helpers.entity_component import EntityComponent
from . import Camera, RtspToWebRtcProviderType
from . import Camera
from .prefs import CameraPreferences
DOMAIN: Final = "camera"
DATA_COMPONENT: HassKey[EntityComponent[Camera]] = HassKey(DOMAIN)
DATA_CAMERA_PREFS: HassKey[CameraPreferences] = HassKey("camera_prefs")
DATA_RTSP_TO_WEB_RTC: HassKey[dict[str, RtspToWebRtcProviderType]] = HassKey(
"rtsp_to_web_rtc"
)
PREF_PRELOAD_STREAM: Final = "preload_stream"
PREF_ORIENTATION: Final = "orientation"