TIL: You Can Access A User's Camera with Just HTML

PHOTO EMBED

Thu Sep 08 2022 17:50:07 GMT+0000 (Coordinated Universal Time)

Saved by @itsbrex #html #camera #capture #video

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width,initial-scale=1" />
  <style>
    * {
      font-size: 1.5rem;
    }
  </style>
</head>

<body>
  <label for="environment">Capture environment:</label>
  <br>
  <input
    type="file"
    id="environment"
    capture="environment"
    accept="video/*"
  >
  <br><br>
  <label for="user">Capture user:</label>
  <br>
  <input
    type="file"
    id="user"
    capture="user"
    accept="image/*"
  >
</body>

</html>
content_copyCOPY

https://austingil.com/html-capture-attribute/