PlanetKitVideoCaptureDeviceInfo
public class PlanetKitVideoCaptureDeviceInfo : NSObject
-
The name of the video capture device.
Remark
This property is identical toAVCaptureDevice.localizedName
.Declaration
Swift
@objc public var name: String { get }
-
The unique identifier of the video capture device.
Remark
This property is identical toAVCaptureDevice.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 toAVCaptureDevice.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 AVCaptureDeviceDeclaration
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 fromminFps
tomaxFps
, and pick a higher frame rate for the best video quality. If you setPlanetKitCameraFrameRate.minFps
to zero,minFps
will be determined by PlanetKit by default. If you setPlanetKitCameraFrameRate.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