Skip to content

Commit

Permalink
user media
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxedomurat authored and murat-aka committed Dec 15, 2019
1 parent 2842de7 commit b586ffe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions examples/color_camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@

<script>
window.onload = function() {
navigator.mediaDevices.getUserMedia({video: {facingMode: 'user'}}).then(function (stream) {
document.getElementById('video').srcObject = stream;
});
var video = document.getElementById('video');
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');

Expand Down
3 changes: 3 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ gulp.task('serve', function() {
port: process.env.PORT || 5000

});

gulp.watch('src/**/*.js', ['build']);

});

// Private helpers
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@
"gulp-jsdoc3": "^2.0.0",
"gulp-jshint": "^2.1.0",
"gulp-nodeunit": "0.1.0",
"gulp-rename": "^1.4.0",
"gulp-rename": "^2.0.0",
"gulp-rimraf": "^1.0.0",
"gulp-uglify": "^3.0.2",
"jshint": "^2.10.2",
"jshint-stylish": "^2.2.1",
"nodeunit": "^0.11.3",
"png-js": "^0.1.1",
"png-js": "^1.0.0",
"run-sequence": "^2.2.1"
},
"dependencies": {
"browser-sync": "^2.26.7",
"gulp": "^3.9.1",
"gulp": "^4.0.2",
"@bower_components/dat-gui": "dataarts/dat.gui#0.5.0",
"@bower_components/threejs": "mrdoob/three.js#r67"
}
Expand Down

0 comments on commit b586ffe

Please sign in to comment.