start Recording
fun startRecording(fileOutputOptions: FileOutputOptions, audioConfig: AudioConfig = AudioConfig.create(true), onResult: (VideoCaptureResult) -> Unit)
Start recording camera.
Parameters
file Output Options
file output options where the video will be saved
on Result
Callback called when VideoCaptureResult is ready
fun startRecording(fileDescriptorOutputOptions: FileDescriptorOutputOptions, audioConfig: AudioConfig = AudioConfig.create(true), onResult: (VideoCaptureResult) -> Unit)
Start recording camera.
Parameters
file Descriptor Output Options
file output options where the video will be saved
on Result
Callback called when VideoCaptureResult is ready
fun startRecording(mediaStoreOutputOptions: MediaStoreOutputOptions, audioConfig: AudioConfig = AudioConfig.create(true), onResult: (VideoCaptureResult) -> Unit)
Start recording camera.
Parameters
media Store Output Options
media store output options to the video to be saved.
on Result
Callback called when VideoCaptureResult is ready