Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- App.init = function() {
- // Prep the document
- App.video = document.querySelector('video');
- App.glasses = new Image();
- App.glasses.src = "i/glasses.png";
- App.canvas = document.querySelector("#output");
- App.ctx = this.canvas.getContext("2d");
- // Finally Check if we can run this puppy and go!
- if (navigator.webkitGetUserMedia) {
- navigator.webkitGetUserMedia('video', App.successCallback, App.errorCallback);
- }
- App.start();
- };
Add Comment
Please, Sign In to add comment