Language
Present Video Editor using ActivityResultContract
Register Contract#
The VideoEditorActivityResultContract
extends from ActivityResultContract
. It is used to start the video editor and handle its result. It parses the result into EditorSDKResult
that provides a convenient API to check the status of the export.
Create SettingsList#
The VideoEditorSettingsList
stores all the settings that are used to configure the video editor and its tools. The configure()
method is used to configure the different ImglySettings
models inside the SettingsList
. Here, we configure the LoadSettings
to set the source to the Uri
of the video to be loaded.
Start Editor#
The ActivityResultLauncher
obtained from registering the VideoEditorActivityResultContract
is used to launch the video editor with the configured VideoEditorSettingsList
.