Package com.telnyx.webrtc.lib
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCamera events handler - can be used to be notifed about camera events.static classHelper class to log framerate and detect if the camera freezes.static interfaceCamera switch handler - one of these functions are invoked with the result of switchCamera().static interfaceDeprecated. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddMediaRecorderToCamera(MediaRecorder mediaRecorder, CameraVideoCapturer.MediaRecorderHandler resultHandler) Deprecated.default voidDeprecated.voidswitchCamera(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler) Switch camera to the next valid camera id.voidswitchCamera(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler, String cameraName) Switch camera to the specified camera id.Methods inherited from interface com.telnyx.webrtc.lib.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(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.
-