♻️ Make ICE server endpoint configurable

This commit is contained in:
Gina Häußge committed 2021-09-15 18:28:02 +02:00
1 parent f8c529723b
commit 10a129e54f
7 files changed
+20 -4

No files matched your search

+3
View File
@@ -129,6 +129,7 @@ def getSettings():
"streamUrl": s.get(["webcam", "stream"]),
"streamRatio": s.get(["webcam", "streamRatio"]),
"streamTimeout": s.getInt(["webcam", "streamTimeout"]),
"streamWebrtcIce": s.get(["webcam", "streamWebrtcIce"]),
"snapshotUrl": s.get(["webcam", "snapshot"]),
"snapshotTimeout": s.getInt(["webcam", "snapshotTimeout"]),
"snapshotSslValidation": s.getBoolean(["webcam", "snapshotSslValidation"]),
@@ -549,6 +550,8 @@ def _saveSettings(data):
s.set(["webcam", "streamRatio"], data["webcam"]["streamRatio"])
if "streamTimeout" in data["webcam"]:
s.setInt(["webcam", "streamTimeout"], data["webcam"]["streamTimeout"])
if "streamWebrtcIce" in data["webcam"]:
s.set(["webcam", "streamWebrtcIce"], data["webcam"]["streamWebrtcIce"])
if "snapshotUrl" in data["webcam"]:
s.set(["webcam", "snapshot"], data["webcam"]["snapshotUrl"])
if "snapshotTimeout" in data["webcam"]: