Version: Android 1.2.1
State & Events
Every io.video.videokit.editor.Editor
implementation keeps its internal state and
offers a way to register listener objects to listen to important events.
#
Editor stateThe editor state can be retrieved with editor.state
and, similar to other VideoKit
components, matches one of the constants in the io.video.videokit.editor.EditorState
class:
State | Description |
---|---|
EditorState.PREVIEW | Editor is in preview mode. This means that no segment was selected and video playback, if used, will play all segments serially. |
EditorState.EDITING | A segment was selected using editor.selectSegment() , so video playback, if used, will play the selected segment only. |
EditorState.FINALIZING | editor.confirm() was called and the editor is busy transcoding all segments to create a single file. Use editor.progress to keep track of the progress and wait for onResult(Edit) . |
#
Editor eventsAll Editor
events are dispatched to a io.video.videokit.editor.EditorListener
that was
previously registered using addListener
.
Listeners are very important to be up-to-date about the editor state, handle errors and create a responsive UI. We describe the listener interface as comments in the interface description below.