VideoEditViewControllerOptions
@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
. If the file already exists it will be overwritten. Intermediate directories will be created if needed.Attention
Please ensure to specify aURL
with valid writing permissions otherwiseVideoEditViewControllerDelegate.videoEditViewControllerDidFailToGenerateVideo
will be called on export.Declaration
Swift
public let exportURL: URL?
-
With the force trim option, you’re able to enforce a
TrimToolControllerOptions.minimumDuration
andTrimToolControllerOptions.maximumDuration
for a video composition in the composition tool and/or a single video in the trim tool. Thus users will not be able to export videos, which are not within the defined video duration limits. This feature is implemented as part of the user interface only. To be able to use this feature your subscription must include the trim feature. Default is set toForceTrimMode.silent
.Declaration
Swift
public let forceTrimMode: ForceTrimMode
-
Creates a new instance of
VideoEditViewControllerOptions
using the given builder.Declaration
Swift
public init(videoEditBuilder: VideoEditViewControllerOptionsBuilder)
Parameters
videoEditBuilder
A
VideoEditViewControllerOptionsBuilder
instance.