Allow RTMP sources for RTSPtoWeb (#71695)

This commit is contained in:
Trevor North
2022-05-11 23:05:42 +01:00
committed by GitHub
parent 49491bcda5
commit 074dfd5a21

View File

@@ -103,7 +103,7 @@ class CameraEntityFeature(IntEnum):
SUPPORT_ON_OFF: Final = 1
SUPPORT_STREAM: Final = 2
RTSP_PREFIXES = {"rtsp://", "rtsps://"}
RTSP_PREFIXES = {"rtsp://", "rtsps://", "rtmp://"}
DEFAULT_CONTENT_TYPE: Final = "image/jpeg"
ENTITY_IMAGE_URL: Final = "/api/camera_proxy/{0}?token={1}"