From a7beef5fe2a83f2a3f406d4241daed2419522235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Herv=C3=A1s=20Rodao?= Date: Mon, 28 Jun 2021 09:45:56 +0200 Subject: [PATCH] novnc webrtc --- utils/stream/rtcstream.js | 1 + vnc.html | 42 +++++++++++++++++++++++---------------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/utils/stream/rtcstream.js b/utils/stream/rtcstream.js index bfe529ce..2f2b6171 100644 --- a/utils/stream/rtcstream.js +++ b/utils/stream/rtcstream.js @@ -51,6 +51,7 @@ async function startLocalStream(){ // Obtener el stream del usuario if(!canvas){ console.log('[NOVNC] Error: no CANVAS'); + users = false; return } stream = canvas.captureStream(); diff --git a/vnc.html b/vnc.html index 6af0d398..abcbaa7f 100644 --- a/vnc.html +++ b/vnc.html @@ -328,6 +328,8 @@