Skip to content

Commit 1570292

Browse files
authored
Added comments for Chrome support
1 parent 4dfdadf commit 1570292

File tree

1 file changed

+13
-0
lines changed
  • src/webrtc/samples/opencvanalyzer/client

1 file changed

+13
-0
lines changed

src/webrtc/samples/opencvanalyzer/client/app.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,20 @@ app.set('view engine', 'ejs');
2222
app.set('views', __dirname + '/');
2323
app.use(express.static(__dirname + '/assets'));
2424

25+
//uncomment this for HTTPS support (Chrome)
2526

27+
//var https = require('https');
28+
//var privateKey = fs.readFileSync('ssl/symple.key', 'utf8'); // there are no local /ssl folder, but you can get it from other samples, or create self signed certs
29+
//var certificate = fs.readFileSync('ssl/symple.crt', 'utf8');
30+
//var credentials = {key: privateKey, cert: certificate};
31+
32+
//var httpsServer = https.createServer(credentials, app);
33+
34+
//httpsServer.listen(app.get('port'), function() {
35+
//console.log('Web server listening on port ' + app.get('port'));
36+
//});
37+
38+
//comment all next lines for HTTPS support (Chrome)
2639
app.get('/', function (req, res) {
2740
res.render('index', {
2841
port: serverPort,

0 commit comments

Comments
 (0)