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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}"