From fb7e58b6754f31dbcd67b57e5f4c103015d85852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Herv=C3=A1s=20Rodao?= Date: Wed, 30 Jun 2021 16:20:41 +0200 Subject: [PATCH] Added postMessage to parent when canvas is ready --- vnc.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vnc.html b/vnc.html index 06f14de5..c8773952 100644 --- a/vnc.html +++ b/vnc.html @@ -345,6 +345,9 @@ canvas = document.querySelector('#noVNC_container canvas'); }else{ if(!stream_set){ + // Send message to parent + parent.postMessage('start_stream','*'); + // Get the stream let stream = canvas.captureStream(); stream_set = true; }