PlanetKitVideoCaptureDeviceInfo

public class PlanetKitVideoCaptureDeviceInfo : NSObject
  • The name of the video capture device.

    Remark

    This property is identical to AVCaptureDevice.localizedName.

    Declaration

    Swift

    @objc
    public var name: String { get }
  • The unique identifier of the video capture device.

    Remark

    This property is identical to AVCaptureDevice.uniqueID.

    Declaration

    Swift

    @objc
    public var uniqueID: String { get }
  • A Boolean value indicating whether the video capture device is available.

    Remark

    This property is identical to AVCaptureDevice.isConnected.

    Declaration

    Swift

    @objc
    public var isAvailable: Bool { get }
  • The device which provides the necessary interface to control and configure the video capture hardware.

    Remark

    See more details on AVCaptureDevice

    Declaration

    Swift

    @objc
    public let device: AVCaptureDevice
  • Sets the preferred preset for the camera resolution. If the given preset is not supported in the capture device, it will be determined by PlanetKit by default.

    Declaration

    Swift

    @objc
    public var preferredPreset: AVCaptureSession.Preset
  • Sets the preferred frame rate.

    Remark

    PlanetKit will collect frame rates supported by the given camera device in the range from minFps to maxFps, and pick a higher frame rate for the best video quality. If you set PlanetKitCameraFrameRate.minFps to zero, minFps will be determined by PlanetKit by default. If you set PlanetKitCameraFrameRate.maxFps to zero, maxFps will be determined by PlanetKit by default.

    Declaration

    Swift

    @objc
    public var preferredFrameRate: PlanetKitFrameRate
  • Rotates the camera image clockwise by the rotation value.

    Declaration

    Swift

    @objc
    public var rotation: PlanetKitVideoRotation