From f105c69c1fd8a6f9b31821d1915caa0eadb5735f Mon Sep 17 00:00:00 2001 From: Trevor North Date: Wed, 11 May 2022 15:42:05 +0100 Subject: [PATCH] Allow RTMP sources for RTSPtoWeb The recommended RTSPtoWeb (rtsp-to-web addon) supports RTMP sources so allow use of the WebRTC provider for these. --- homeassistant/components/camera/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/camera/__init__.py b/homeassistant/components/camera/__init__.py index 2079e9624599ea..57019f7c68daaa 100644 --- a/homeassistant/components/camera/__init__.py +++ b/homeassistant/components/camera/__init__.py @@ -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}"