VKEditorViewController

public class VKEditorViewController : UIViewController
extension VKEditorViewController: VKRearrangeViewDelegate
extension VKEditorViewController: VKTrimmerViewDelegate

View Controller with a preview and video trimming capabilities

  • View Delegate for customizations

    Declaration

    Swift

    public var delegate: VKEditorViewControllerDelegate?
  • Provide your own trimmer (if needed) using VKTrimmerProtocol

    Declaration

    Swift

    public var trimmer: VKTrimmerProtocol
  • Helper text that appears when we are in reordering mode

    Declaration

    Swift

    public var reorderText: String
  • Helper text that appears when we are in trimming mode

    Declaration

    Swift

    public var trimmingText: String
  • Declaration

    Swift

    public let textLabel: UILabel
  • Declaration

    Swift

    public let bottomBorder: UIView
  • Declaration

    Swift

    public let abortButton: UIButton
  • Declaration

    Swift

    public let doneButton: UIButton
  • Declaration

    Swift

    public var backgroundView: UIView
  • Rearranve view control Access rearrangeView to customize the Rearranger

    Declaration

    Swift

    public var rearrangeView: VKRearrangeView
  • The trimming view control Access trimmerView to customize the trimmer view

    Declaration

    Swift

    public var trimmerView: VKTrimmerView
  • View to display the player

    Declaration

    Swift

    public var playerView: UIView
  • View to display the player for the trimming view

    Declaration

    Swift

    public var trimmingPlayerView: UIView
  • Player playing the active video clip

    Declaration

    Swift

    public var videoLooper: VKVideoLooper?
  • Initialize Edit View Controller with a session that has clips to rearrange and/or trim

    Declaration

    Swift

    public convenience init(withSession session: VKRecorderSession)
  • Initialize Edit View Controller based on a list of URL urls

    Declaration

    Swift

    public convenience init(withVideoURLs urls: [URL])
  • Initialize Edit View Controller based on a list of string urls

    Declaration

    Swift

    public convenience init(withVideoURLs urls: [String])
  • View did load

    Declaration

    Swift

    public override func viewDidLoad()
  • View did disappear

    Declaration

    Swift

    public override func viewDidDisappear(_ animated: Bool)
  • Declaration

    Swift

    public override func viewWillAppear(_ animated: Bool)
  • Load clip into trimmer

    Declaration

    Swift

    public func editClip(clip: VKRecorderClip)
  • Declaration

    Swift

    public func playTrimPlayer()
  • Load asset into editor video This method loads the asset into the preview track. Call it only after your view is layed out so that it can calculate the apropriate aspect ratio of the video thumbnails. Parameters:

    • asset: The AVAsset to trim

    Declaration

    Swift

    public func prepareAssetForTrimming(_ asset: AVAsset)
  • Tapped delete clip

    Declaration

    Swift

    public func tappedDeleteClip(clip: VKRecorderClip)
  • Tapped on clip within rearrangeview Changes mode to trimming mode for the selected clip

    Declaration

    Swift

    public func tappedClip(clip: VKRecorderClip, hasBeenTrimmed: Bool, startTime: CMTime, endTime: CMTime)
  • Declaration

    Swift

    public func clipsRearranged(clips: [VKRecorderClip])
  • Declaration

    Swift

    public func didAdjustTrimmerHandle(startTime start: Double, endTime end: Double, atPlayerTime playerTime: CMTime)
  • Declaration

    Swift

    public func didFinishTrimming(startTime start: Double, endTime end: Double, atPlayerTime playerTime: CMTime)