Class UsbCamera

All Implemented Interfaces:
AutoCloseable

public class UsbCamera
extends VideoCamera
A source that represents a USB camera.
  • Constructor Details

    • UsbCamera

      public UsbCamera​(String name, int dev)
      Create a source for a USB camera based on device number.
      Parameters:
      name - Source name (arbitrary unique identifier)
      dev - Device number (e.g. 0 for /dev/video0)
    • UsbCamera

      public UsbCamera​(String name, String path)
      Create a source for a USB camera based on device path.
      Parameters:
      name - Source name (arbitrary unique identifier)
      path - Path to device (e.g. "/dev/video0" on Linux)
  • Method Details