Make go2rtc supported streams a frozenset (#127439)
Avoids the linear search of the tuplepull/127448/head
parent
49882112ac
commit
7cd4f78767
|
@ -15,32 +15,34 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
from .const import CONF_BINARY
|
from .const import CONF_BINARY
|
||||||
from .server import Server
|
from .server import Server
|
||||||
|
|
||||||
_SUPPORTED_STREAMS = (
|
_SUPPORTED_STREAMS = frozenset(
|
||||||
"bubble",
|
(
|
||||||
"dvrip",
|
"bubble",
|
||||||
"expr",
|
"dvrip",
|
||||||
"ffmpeg",
|
"expr",
|
||||||
"gopro",
|
"ffmpeg",
|
||||||
"homekit",
|
"gopro",
|
||||||
"http",
|
"homekit",
|
||||||
"https",
|
"http",
|
||||||
"httpx",
|
"https",
|
||||||
"isapi",
|
"httpx",
|
||||||
"ivideon",
|
"isapi",
|
||||||
"kasa",
|
"ivideon",
|
||||||
"nest",
|
"kasa",
|
||||||
"onvif",
|
"nest",
|
||||||
"roborock",
|
"onvif",
|
||||||
"rtmp",
|
"roborock",
|
||||||
"rtmps",
|
"rtmp",
|
||||||
"rtmpx",
|
"rtmps",
|
||||||
"rtsp",
|
"rtmpx",
|
||||||
"rtsps",
|
"rtsp",
|
||||||
"rtspx",
|
"rtsps",
|
||||||
"tapo",
|
"rtspx",
|
||||||
"tcp",
|
"tapo",
|
||||||
"webrtc",
|
"tcp",
|
||||||
"webtorrent",
|
"webrtc",
|
||||||
|
"webtorrent",
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue