CameraVideoOutput
A CameraOutput recording videos (possibly with audio) to files, through Recorders.
val videoOutput = VisionCamera.createVideoOutput(VideoOutputOptions(enableAudio = true))
// ... connect it to a CameraSession, then:
val recorder = videoOutput.createRecorder()
recorder.startRecording(
onRecordingFinished = { filePath, reason -> println("Saved to $filePath ($reason)") },
onRecordingError = { error -> println("Recording failed: $error") },
)
// ... later:
recorder.stopRecording()Content copied to clipboard
Properties
Functions
Link copied to clipboard
Same as dispose, to use a CameraOutput with use { }.
Link copied to clipboard
Link copied to clipboard
Gets the VideoCodecs this output can currently record in. Only supported on iOS.
Link copied to clipboard
Sets the output settings of this output, after it is connected to a CameraSession and before createRecorder. Only supported on iOS.