VideoEditViewController
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKVideoEditViewController)
open class VideoEditViewController : MediaEditViewController, BrandedView
A VideoEditViewController
is the main starting point for the SDK. It displays the rendered
video and a menu. It can present PhotoEditToolController
objects and react to changes. It
can be presented on its own (thus displaying a toolbar for navigation at the bottom) or be
embedded into a UINavigationController
(thus using the navigation controller’s navigation bar
for navigation).
-
An object that acts as the delegate.
Declaration
Swift
open weak var delegate: VideoEditViewControllerDelegate?
-
Creates a new
VideoEditViewController
for the givenVideo
, the given configuration and photo edit model.Declaration
Swift
public required init(videoAsset: Video, configuration: Configuration = Configuration(), photoEditModel: PhotoEditModel = PhotoEditModel())
Parameters
videoAsset
The video to edit.
configuration
The configuration options to apply.
photoEditModel
The initial photo edit model to apply to the photo.
-
Applies all changes to the high resolution video and calls the delegate methods.
Declaration
Swift
open override func renderHighResolutionVariant()
-
Serializes all currently applied operations into a single file, which may be restored on other platforms to continue editing.
Declaration
Swift
open var serializedSettings: Data? { get }
-
Creates a new
VideoEditViewController
for the givenVideo
and the given configuration, using the default photo edit model.Declaration
Swift
convenience init(videoAsset: Video, configuration: Configuration)
Parameters
videoAsset
The video to edit.
configuration
The configuration options to apply.
-
Creates a new
VideoEditViewController
for the givenVideo
, the given configuration and photo edit model.Attention
This initializer should only be used with Objective-C.
Declaration
Swift
convenience init(videoAsset: Video, configuration: Configuration, photoEditModel: _ObjCPhotoEditModel)
Parameters
videoAsset
The video to edit.
configuration
The configuration options to apply.
photoEditModel
The initial photo edit model to apply to the photo.