VideoEditViewControllerOptions

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKVideoEditViewControllerOptions)
open class VideoEditViewControllerOptions : MediaEditViewControllerOptions

Options for configuring a VideoEditViewController.

  • The video container format to export. Default is .mp4.

    Declaration

    Swift

    public let videoContainerFormat: VideoContainerFormat
  • The Uniform Type Identifier (UTI) of the output video as UTType.

    Declaration

    Swift

    public var videoContainerFormatUTI: CFString { get }
  • The video codec to use for the exported video. Default is .h264.

    Declaration

    Swift

    public let videoCodec: VideoCodec
  • The local file path where to export the edited video. nil means export to a temporary file. Default is nil.

    Attention

    Please ensure to specify a URL with valid writing permissions otherwise VideoEditViewControllerDelegate.videoEditViewControllerDidFailToGenerateVideo will be called on export.

    Declaration

    Swift

    public let exportURL: URL?
  • Creates a new instance of VideoEditViewControllerOptions using the given builder.

    Declaration

    Swift

    public init(videoEditBuilder: VideoEditViewControllerOptionsBuilder)

    Parameters

    videoEditBuilder