Prerequisites

VS Code with live server extension

Steps to run the project

  1. open the project in VS Code
  2. open the index.html file in VS Code
  3. click on Go Live button in VS Code
  4. open intermediate-window folder in new VS Code window and click on Go Live button
  5. open final-window folder in new VS Code window and click on Go Live button
  6. open http://127.0.0.1:5500 in browser open console and click on Request camera access button you will get Error: DOMException: Permission denied
  7. open http://127.0.0.1:5502 in browser open console and click on Request camera access button
  8. Now your browser will request camera access, and you will get success message in console