Add comments
This commit is contained in:
parent
077a7d127e
commit
b268d2fa80
@ -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);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user