diff --git a/www/stream.html b/www/stream.html index 706eaf7d..46aafd61 100644 --- a/www/stream.html +++ b/www/stream.html @@ -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); }