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 isnil
.Attention
Please ensure to specify aURL
with valid writing permissions otherwiseVideoEditViewControllerDelegate.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
A
VideoEditViewControllerOptionsBuilder
instance.