CameraVideoCapturer
Base interface for camera1 and camera2 implementations. Extends VideoCapturer with a switchCamera() function. Also provides subinterfaces for handling camera events, and a helper class for detecting camera freezes.
Types
Link copied to clipboard
Camera events handler - can be used to be notifed about camera events.
Link copied to clipboard
Helper class to log framerate and detect if the camera freezes.
Link copied to clipboard
Camera switch handler - one of these functions are invoked with the result of switchCamera().
Link copied to clipboard
MediaRecorder add/remove handler - one of these functions are invoked with the result of addMediaRecorderToCamera() or removeMediaRecorderFromCamera calls.
Functions
Link copied to clipboard
Content copied to clipboard
Add MediaRecorder to camera pipeline.
Link copied to clipboard
Content copied to clipboard
Remove MediaRecorder from camera pipeline.
Link copied to clipboard
abstract fun switchCamera(switchEventsHandler: CameraVideoCapturer.CameraSwitchHandler)
Content copied to clipboard
Switch camera to the next valid camera id.
abstract fun switchCamera(switchEventsHandler: CameraVideoCapturer.CameraSwitchHandler, cameraName: String)
Content copied to clipboard
Switch camera to the specified camera id.