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); }