Fix stream page for raw urls in src

This commit is contained in:
Alexey Khit
2022-12-25 08:55:58 +03:00
parent e6c36f1cf7
commit db2263c7fe
+1 -1
View File
@@ -53,7 +53,7 @@
video.background = background;
video.mode = modes[i] || video.mode;
video.style.flex = width;
video.src = new URL("api/ws?src=" + streams[i], location.href);
video.src = new URL("api/ws?src=" + encodeURIComponent(streams[i]), location.href);
document.body.appendChild(video);
}
</script>