VKRecorderVideoConfiguration

@objc
public class VKRecorderVideoConfiguration : VKRecorderConfiguration

VKRecorderVideoConfiguration, video capture configuration object

types

properties

  • 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 VKRecorderVideoConfiguration.preset or VKRecorderVideoConfiguration.dimensions

    Declaration

    Swift

    public var aspectRatio: VKAspectRatio
  • 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?
  • Automatically stitches all clips together after capturing finishes

    Declaration

    Swift

    public var autoMergeClipsAfterRecording: Bool
  • Quality preset for autoMergeClipsAfterRecording

    Declaration

    Swift

    public var autoMergeAssetExportPreset: String
  • Enables upload while recording.

    • Creates a new video object after starting the recording session and immediately starts uploading to our backend
    • Disables multiple clip recordings if enabled. (VKRecorderVideoConfiguration.recordMultipleClips)

    Declaration

    Swift

    public var uploadWhileRecording: Bool { get set }
  • Tells the session to record video into multiple clips (useful for editing and rearranging clips afterwards) Note that if recording into multiple clips uploadWhileRecording is not supported

    Declaration

    Swift

    public var recordMultipleClips: Bool { get set }

object lifecycle

  • Declaration

    Swift

    public override init()

func

  • 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