Radu Mariescu-Istodor | Accessing camera with HTML and vanilla JavaScript (Desktop and Mobile) @Radu | Uploaded 3 years ago | Updated 1 hour ago
In this video we learn how to access the camera of a device and show it on a simple HTML page using the HTML canvas element. We'll use vanilla JavaScript to handle different resolutions such as those coming from typical webcams and mobile devices. We'll experiment on a desktop computer but the application works on mobile as well.
This tutorial is part 1 of a series that teaches how to code a complex puzzle game that uses the camera:
Part 1. Accessing camera with HTML and vanilla JavaScript (Desktop and Mobile)
Part 2. Image manipulation using vanilla JavaScript (Cutting it into Pieces)
Part 3. Drag and drop using vanilla JavaScript and HTML canvas (Desktop and Mobile)
Part 4. Gameplay elements (Menu, Timer, Check complete)
Part 5. Styles and visuals (CSS and vectorial drawing)
Part 6. Working with sound (Recording and synthesis)
Part 7. MySql (PhpMyAdmin, Table structure)
Part 8. Php (Handling HTTP Requests, Interacting with the database)
Part 9. Advanced image manipulation in vanilla JavaScript (Shaping Puzzle Pieces)
Part 10. Advanced drag and drop in vanilla JavaScript (Handling Complex Shapes)
Full Playlist:
youtube.com/playlist?list=PLB0Tybl0UNfadlXE6BSpPk6O1Rbfm9ITo
Play the game here:
radufromfinland.com/projects/puzzlecam
Me playing the game on INSANE difficulty:
youtu.be/BTwZJURK13A
Game introduction (1000 subscriber special):
youtu.be/FOlJPxJVPMA
In this video we learn how to access the camera of a device and show it on a simple HTML page using the HTML canvas element. We'll use vanilla JavaScript to handle different resolutions such as those coming from typical webcams and mobile devices. We'll experiment on a desktop computer but the application works on mobile as well.
This tutorial is part 1 of a series that teaches how to code a complex puzzle game that uses the camera:
Part 1. Accessing camera with HTML and vanilla JavaScript (Desktop and Mobile)
Part 2. Image manipulation using vanilla JavaScript (Cutting it into Pieces)
Part 3. Drag and drop using vanilla JavaScript and HTML canvas (Desktop and Mobile)
Part 4. Gameplay elements (Menu, Timer, Check complete)
Part 5. Styles and visuals (CSS and vectorial drawing)
Part 6. Working with sound (Recording and synthesis)
Part 7. MySql (PhpMyAdmin, Table structure)
Part 8. Php (Handling HTTP Requests, Interacting with the database)
Part 9. Advanced image manipulation in vanilla JavaScript (Shaping Puzzle Pieces)
Part 10. Advanced drag and drop in vanilla JavaScript (Handling Complex Shapes)
Full Playlist:
youtube.com/playlist?list=PLB0Tybl0UNfadlXE6BSpPk6O1Rbfm9ITo
Play the game here:
radufromfinland.com/projects/puzzlecam
Me playing the game on INSANE difficulty:
youtu.be/BTwZJURK13A
Game introduction (1000 subscriber special):
youtu.be/FOlJPxJVPMA