NextLevelVideoConfiguration

public class NextLevelVideoConfiguration: NextLevelConfiguration

NextLevelVideoConfiguration, video capture configuration object

  • Output aspect ratio, specifies dimensions for video output automatically

    See more

    Declaration

    Swift

    public enum OutputAspectRatio: Int, CustomStringConvertible
  • 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.dimensions

    Declaration

    Swift

    public var aspectRatio: OutputAspectRatio
  • 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: String
  • 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

    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?
  • Provides an AVFoundation friendly dictionary for configuring output.

    Parameter

    Parameter sampleBuffer: Sample buffer for extracting configuration information

    Returns

    Video configuration dictionary for AVFoundation

    Declaration

    Swift

    override public func avcaptureSettingsDictionary(sampleBuffer: CMSampleBuffer? = nil, pixelBuffer: CVPixelBuffer? = nil) -> [String : Any]?