WebCamera

Read with AI
All docs in one file (llms-full.txt)
WebCamera #Source #Node
WebCamera

A node that brings in webcam video. Selecting a device in the dropdown starts capture, and the output RT is rebuilt at the resolution the camera actually returned (which does not necessarily match what was requested).

  • W / H request the resolution (default 1280×720, FPS 30). Changing the values restarts a camera that is already running
  • Choosing None stops the camera and clears the output to black
  • The Refresh button re-fetches the device list. When nothing is selected, it does not auto-connect to the first camera

At startup it first obtains camera permission with RequestUserAuthorization and then enumerates devices. This is because on macOS the device list stays empty and the video stays black unless permission is obtained, and if permission is denied the list stays empty (Windows works without permission, so there is an OS difference).

Input ports

None

Output ports

Port IDType
RenderTexture OutputRenderTexture

Scriptable members

PathType
currentDeviceNamestring
requestedWidthint
requestedHeightint
requestedFPSint

Synapse Apps (scripting)

await synapse.modules.create({ type: "WebCamera" })