Class CameraSource


public class CameraSource extends SurfaceSource
CameraSource represents a camera input device
  • Method Details

    • getDescriptor

      public Device.Descriptor getDescriptor()
      Overrides:
      getDescriptor in class SurfaceSource
      Returns:
      the Device.Descriptor that represents this camera
    • getCapabilities

      public CameraSource.Capabilities getCapabilities()
      Returns this camera's capabilities
      Returns:
      The camera's capabilities
    • setOptions

      public void setOptions(@NonNull CameraSource.Options options) throws IllegalArgumentException
      Sets capture options for this camera. If the camera is already open and capturing video input, it will remain open and the video capture will adjust right away based on the new options.
      Parameters:
      options - Options to apply
      Throws:
      IllegalArgumentException - If options are not valid
    • setRotation

      public void setRotation(float rotation)
      Description copied from class: ImageDevice
      Sets the rotation of the ImageDevice.
      Overrides:
      setRotation in class SurfaceSource
      Parameters:
      rotation - Rotation in radians