🐛 We also recognize webrtcs: for webcam streams
Thanks for the heads-up, @cp2004
This commit is contained in:
1 parent
6d259d7e6f
commit
4d9e86ca0f
1 file changed
+4
-3
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user