-
public abstract class VideoRecorderInterface for video recording. Don't call start if already started. Don't call stop if already stopped.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceVideoRecorder.VideoResultListenerListens for video recorder events.
-
Field Summary
Fields Modifier and Type Field Description VideoResult.StubmResult
-
Constructor Summary
Constructors Constructor Description VideoRecorder(VideoRecorder.VideoResultListener listener)Creates a new video recorder.
-
Method Summary
Modifier and Type Method Description final voidstart(VideoResult.Stub stub)Starts recording a video. final voidstop(boolean isCameraShutdown)Stops recording. booleanisRecording()Returns true if it is currently recording. -
-
Constructor Detail
-
VideoRecorder
VideoRecorder(VideoRecorder.VideoResultListener listener)
Creates a new video recorder.- Parameters:
listener- a listener
-
-
Method Detail
-
start
final void start(VideoResult.Stub stub)
Starts recording a video.
- Parameters:
stub- the video stub
-
stop
final void stop(boolean isCameraShutdown)
Stops recording.
- Parameters:
isCameraShutdown- whether this is a full shutdown, camera is being closed
-
isRecording
boolean isRecording()
Returns true if it is currently recording.
-
-
-
-