🐛 We also recognize webrtcs: for webcam streams

Thanks for the heads-up, @cp2004
This commit is contained in:
Gina Häußge committed 2022-05-12 10:57:39 +02:00
1 parent 6d259d7e6f
commit 4d9e86ca0f
1 file changed
+4 -3
+4 -3
View File
@@ -1571,9 +1571,10 @@ var validateWebcamUrl = function (streamUrl) {
} else if (
lower.startsWith("http:") ||
lower.startsWith("https:") ||
lower.startsWith("webrtc:")
lower.startsWith("webrtc:") ||
lower.startsWith("webrtcs:")
) {
// absolute & http/https/webrtc
// absolute & supported protocol
toParse = streamUrl;
} else {
return false;
@@ -1596,7 +1597,7 @@ var determineWebcamStreamType = function (streamUrl) {
throw "Invalid streamUrl. Cannot determine stream type.";
}
if (parsed.protocol === "webrtc:") {
if (parsed.protocol === "webrtc:" || parsed.protocol === "webrtcs:") {
return "webrtc";
}