From b268d2fa8043098c0b52759a14c8f17b3079cda7 Mon Sep 17 00:00:00 2001 From: Artyom Abubakirov Date: Mon, 28 May 2018 23:29:55 +0500 Subject: [PATCH] Add comments --- desktop-capturing.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop-capturing.js b/desktop-capturing.js index 4c5d6ec..44ff226 100755 --- a/desktop-capturing.js +++ b/desktop-capturing.js @@ -473,11 +473,11 @@ function gotCustomStream(stream) { function startSharing(){ if(!window.stream){ - console.log('windows.steam not found'); + console.log('windos.stream not found'); return; } - recordedBlobs = []; + //recordedBlobs = []; websocket = io('https://kurento.fishrungames.com/'); @@ -513,13 +513,13 @@ function startSharing(){ //here mediaRecorder.ondataavailable = handleDataAvailable; - mediaRecorder.start(60); // collect data + mediaRecorder.start(60); // collect data per 60ms } function handleDataAvailable(event) { if (event.data && event.data.size > 0) { - recordedBlobs.push(event.data); + //recordedBlobs.push(event.data); websocket.emit('blob', event.data); }