Package tvi.webrtc
Interface CameraVideoCapturer
- All Superinterfaces:
VideoCapturer
- All Known Implementing Classes:
Camera1Capturer
,Camera2Capturer
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Camera events handler - can be used to be notifed about camera events.static class
Helper class to log framerate and detect if the camera freezes.static interface
Camera switch handler - one of these functions are invoked with the result of switchCamera().static interface
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
addMediaRecorderToCamera
(android.media.MediaRecorder mediaRecorder, CameraVideoCapturer.MediaRecorderHandler resultHandler) Deprecated.default void
Deprecated.void
switchCamera
(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler) Switch camera to the next valid camera id.void
switchCamera
(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler, String cameraName) Switch camera to the specified camera id.Methods inherited from interface tvi.webrtc.VideoCapturer
changeCaptureFormat, dispose, initialize, isScreencast, startCapture, stopCapture
-
Method Details
-
switchCamera
Switch camera to the next valid camera id. This can only be called while the camera is running. This function can be called from any thread. -
switchCamera
Switch camera to the specified camera id. This can only be called while the camera is running. This function can be called from any thread. -
addMediaRecorderToCamera
@Deprecated default void addMediaRecorderToCamera(android.media.MediaRecorder mediaRecorder, CameraVideoCapturer.MediaRecorderHandler resultHandler) Deprecated.Add MediaRecorder to camera pipeline. This can only be called while the camera is running. Once MediaRecorder is added to camera pipeline camera switch is not allowed. This function can be called from any thread. -
removeMediaRecorderFromCamera
@Deprecated default void removeMediaRecorderFromCamera(CameraVideoCapturer.MediaRecorderHandler resultHandler) Deprecated.Remove MediaRecorder from camera pipeline. This can only be called while the camera is running. This function can be called from any thread.
-