getUserMedia methodof the web media API to detect a webcam and get permission from the user to stream video from the webcam
- Use the setInterval() method to countdown from 3 till 0
- On the count of 0 trigger drawing of current video frame on the canvas using context.drawImage()
- Do this 3 times as there are 3 separate poses or images of poses
- clearInterval() between each count and disable the start button after the countdown begins, because the setInterval() method messes up the global window object
Join 7000+ other code newbies
Last year 7000 newbies learned how to code with me! Totally project oriented.
Subscribe and you'll get access to my classes, coupon codes for tech conferences and totally valuable article on jump-starting your career as a developer.