NextLevelVideoConfiguration
public class NextLevelVideoConfiguration : NextLevelConfiguration
NextLevelVideoConfiguration, video capture configuration object
-
Undocumented
Declaration
Swift
public static let VideoBitRateDefault: Int
-
Average video bit rate (bits per second), AV dictionary key AVVideoAverageBitRateKey
Declaration
Swift
public var bitRate: Int
-
Dimensions for video output, AV dictionary keys AVVideoWidthKey, AVVideoHeightKey
Declaration
Swift
public var dimensions: CGSize?
-
Output aspect ratio automatically sizes output dimensions,
active
indicates NextLevelVideoConfiguration.preset or NextLevelVideoConfiguration.dimensionsDeclaration
Swift
public var aspectRatio: NextLevelConfiguration.AspectRatio
-
Video output transform for display
Declaration
Swift
public var transform: CGAffineTransform
-
Codec used to encode video, AV dictionary key AVVideoCodecKey
Declaration
Swift
public var codec: AVVideoCodecType
-
Profile level for the configuration, AV dictionary key AVVideoProfileLevelKey (H.264 codec only)
Declaration
Swift
public var profileLevel: String?
-
Video scaling mode, AV dictionary key AVVideoScalingModeKey (AVVideoScalingModeResizeAspectFill, AVVideoScalingModeResizeAspect, AVVideoScalingModeResize, AVVideoScalingModeFit)
Declaration
Swift
public var scalingMode: String
-
Maximum interval between key frames, 1 meaning key frames only, AV dictionary key AVVideoMaxKeyFrameIntervalKey
Declaration
Swift
public var maxKeyFrameInterval: Int?
-
Video time scale, value/timescale = seconds
Declaration
Swift
public var timescale: Float64?
-
Maximum recording duration, when set, session finishes automatically
Declaration
Swift
public var maximumCaptureDuration: CMTime?
-
Undocumented
Declaration
Swift
public override init()
-
Provides an AVFoundation friendly dictionary for configuring output.
Declaration
Swift
public override func avcaptureSettingsDictionary(sampleBuffer: CMSampleBuffer? = nil, pixelBuffer: CVPixelBuffer? = nil) -> [String : Any]?
Parameters
sampleBuffer
Sample buffer for extracting configuration information
Return Value
Video configuration dictionary for AVFoundation