There's also an accessor for acquiring camera data. The Camera accessor connects to a webcam and outputs images from the webcam. It has parameters for frame rate, view size, and the particular camera to connect to. The Camera may be configured to be triggered by an event or to periodically output images.

Here, we'll instantiate a camera and trigger it manually. The browser host automatically sets up a display for the captured image.

Click 'react to inputs'. The browser may prompt you to allow camera access. Then, you should see a live camera feed. A snapshot will be taken each time you click 'react to inputs'. The first snapshot may be dark due to camera startup.

  Next, we'll control audio with timed events.