Skip to main content

From Local Path

VideoEditor SDK supports loading video files from the local file system such as the documents or a temporary folder, as well as the app bundle.

Retrieve bundle URL#

First we need to retrieve the URL for a file on the local system. In this example, a file within the app bundle.

Initialize the editor#

We then create a Video from this URL and pass it as videoAsset to the VideoEditViewController to instantiate the video editor. Setting the current class as the delegate of the VideoEditViewController allows us to implement export, cancellation and error handling there.