Interface CameraController.RecordingListener
- Enclosing interface:
- CameraController
public static interface CameraController.RecordingListener
This class can be used to listen for recording events.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onRecordingFragmentStopped
(CameraController.RecordingStopReason reason, String libraryItemId) This callback is called after current video fragment's data was completely flushed to disk.void
onRecordingStarted
(androidx.documentfile.provider.DocumentFile outputFile) This callback is called as soon as a new recording session has begun streaming video to disk.void
This callback is called after a recording session completely stopped recording and all data was flushed to disk.
-
Method Details
-
onRecordingStarted
void onRecordingStarted(androidx.documentfile.provider.DocumentFile outputFile) This callback is called as soon as a new recording session has begun streaming video to disk.You can use this callback to update your user interface (such as change the recording button to a stop button).
This event will be called for each video fragment.
- Parameters:
outputFile
- The file where the video is saved.
-