Package tvi.webrtc
Interface CameraVideoCapturer
-
- All Superinterfaces:
VideoCapturer
- All Known Implementing Classes:
Camera1Capturer
,Camera2Capturer
public interface CameraVideoCapturer extends VideoCapturer
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 Classes Modifier and Type Interface Description static interface
CameraVideoCapturer.CameraEventsHandler
Camera events handler - can be used to be notifed about camera events.static class
CameraVideoCapturer.CameraStatistics
Helper class to log framerate and detect if the camera freezes.static interface
CameraVideoCapturer.CameraSwitchHandler
Camera switch handler - one of these functions are invoked with the result of switchCamera().static interface
CameraVideoCapturer.MediaRecorderHandler
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
addMediaRecorderToCamera(android.media.MediaRecorder mediaRecorder, CameraVideoCapturer.MediaRecorderHandler resultHandler)
Deprecated.default void
removeMediaRecorderFromCamera(CameraVideoCapturer.MediaRecorderHandler resultHandler)
Deprecated.void
switchCamera(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler)
Switch camera to the next valid camera id.void
switchCamera(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler, java.lang.String cameraName)
Switch camera to the specified camera id.-
Methods inherited from interface tvi.webrtc.VideoCapturer
changeCaptureFormat, dispose, initialize, isScreencast, startCapture, stopCapture
-
-
-
-
Method Detail
-
switchCamera
void switchCamera(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler)
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
void switchCamera(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler, java.lang.String cameraName)
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.
-
-