NextLevelConfiguration

public class NextLevelConfiguration

NextLevelConfiguration, media capture configuration object

  • Aspect ratio, specifies dimensions for video output

    • active: active preset or specified dimensions (default)
    • square: 1:1 square
    • standard: 3:4
    • standardLandscape: 4:3, landscape
    • widescreen: 9:16 HD
    • widescreenLandscape: 16:9 HD landscape
    • instagram: 4:5 Instagram
    • instagramLandscape: 5:4 Instagram landscape
    • cinematic: 2.35:1 cinematic
    • custom: custom aspect ratio
    See more

    Declaration

    Swift

    public enum AspectRatio : CustomStringConvertible
  • AVFoundation configuration preset, see AVCaptureSession.h

    Declaration

    Swift

    public var preset: AVCaptureSession.Preset
  • Setting an options dictionary overrides all other properties set on a configuration object but allows full customization

    Declaration

    Swift

    public var options: [String : Any]?
  • Undocumented

    Declaration

    Swift

    public init()
  • Provides an AVFoundation friendly dictionary for configuring output.

    Declaration

    Swift

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

    Parameters

    sampleBuffer

    Sample buffer for extracting configuration information

    Return Value

    Configuration dictionary for AVFoundation