public static interface VideoEditor.PreviewProgressListener
#startPreview(SurfaceHolder surfaceHolder, long fromMs,
int callbackAfterFrameCount, PreviewProgressListener listener)
Modifier and Type | Method and Description |
---|---|
void |
onError(VideoEditor videoEditor,
int error)
This method notifies the listener when error has occurred during
previewing a project.
|
void |
onProgress(VideoEditor videoEditor,
long timeMs,
VideoEditor.OverlayData overlayData)
This method notifies the listener of the current time position while
previewing a project.
|
void |
onStart(VideoEditor videoEditor)
This method notifies the listener when the preview is started
previewing a project.
|
void |
onStop(VideoEditor videoEditor)
This method notifies the listener when the preview is stopped
previewing a project.
|
void onProgress(VideoEditor videoEditor, long timeMs, VideoEditor.OverlayData overlayData)
videoEditor
- The VideoEditor instancetimeMs
- The current preview position (expressed in milliseconds
since the beginning of the storyboard timeline).overlayData
- The overlay data (null if the overlay data
is unchanged)void onStart(VideoEditor videoEditor)
videoEditor
- The VideoEditor instancevoid onStop(VideoEditor videoEditor)
videoEditor
- The VideoEditor instancevoid onError(VideoEditor videoEditor, int error)
videoEditor
- The VideoEditor instanceerror
- The error that has occurred
FIXME: We should pass well-defined error code to the application;
but for now, we just pass whatever error code reported by the native layer.