Package com.appliedrec.verid.ui2
Interface ISessionVideoRecorder
-
- All Superinterfaces:
androidx.lifecycle.DefaultLifecycleObserver
,androidx.lifecycle.LifecycleObserver
- All Known Implementing Classes:
SessionVideoRecorder
public interface ISessionVideoRecorder extends androidx.lifecycle.DefaultLifecycleObserver
Interface for recording session videos- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<android.view.Surface>
getSurface()
Get surfacejava.util.Optional<java.io.File>
getVideoFile()
Get a file in which to save the videovoid
setup(android.util.Size videoSize, int rotationDegrees)
Set up the video recordervoid
start()
Start recording videovoid
stop()
Stop recording video
-
-
-
Method Detail
-
getSurface
java.util.Optional<android.view.Surface> getSurface()
Get surface- Returns:
- Surface on which to render video
- Since:
- 2.0.0
-
setup
void setup(android.util.Size videoSize, int rotationDegrees)
Set up the video recorder- Parameters:
videoSize
- Size of the raw video framesrotationDegrees
- Rotation of the video in degrees- Since:
- 2.0.0
-
start
void start()
Start recording video- Since:
- 2.0.0
-
stop
void stop()
Stop recording video- Since:
- 2.0.0
-
getVideoFile
java.util.Optional<java.io.File> getVideoFile()
Get a file in which to save the video- Returns:
- File in which to save the video
- Since:
- 2.0.0
-
-