Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianMrn committed Dec 8, 2018
1 parent 7aabea9 commit a818686
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ws-test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"use strict";
var container = document.getElementById( "container" );
var img = document.getElementById( "img" );
var ws = new WebSocket( "ws://127.0.0.1:9091" );
var ws = new WebSocket( "ws://192.168.47.149:9091" );
ws.onmessage = function( data ) {
img.src = data.data;
};
Expand Down
11 changes: 7 additions & 4 deletions ws-test/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,27 @@ WSS.broadcast = function broadcast(data) {
});
};

var opts = {
/* var opts = {
width: 1280,
height: 720,
quality: 100,
delay: 0,
saveShots: false,
saveShots: true,
output: "jpeg",
device: false,
verbose: true,
// [location, buffer, base64]
// Webcam.CallbackReturnTypes
callbackReturn: "base64",
};
}; */

var NodeWebcam = require('node-webcam');
var FSWebcam = NodeWebcam.FSWebcam;
var Webcam = new FSWebcam(opts);
var Webcam = new FSWebcam({
callbackReturn: "base64",
saveShots: false
});

// Main
init();
Expand Down

0 comments on commit a818686

Please sign in to comment.