VKRecorderConfiguration

@objc
public class VKRecorderConfiguration : NSObject

VKRecorderConfiguration, media capture configuration object

types

  • 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
    • tiktok: 9:16 HD
    • widescreenLandscape: 16:9 HD landscape
    • instagram: 4:5 Instagram
    • instagramLandscape: 5:4 Instagram landscape
    • instagramStories: 9:16 Instagram stories
    • cinematic: 2.35:1 cinematic
    • custom: custom aspect ratio
    See more

    Declaration

    Swift

    public enum VKAspectRatio : CustomStringConvertible

properties

  • 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]?

object lifecycle

  • Declaration

    Swift

    public override init()

func

  • 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