CameraVideoCapturer

tee3.webrtc

## 接口 CameraVideoCapturer

- 所有超级接口:
    VideoCapturer
  所有已知实现类:
    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.

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 接口和说明
    --- | ---
    `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` 已过时。

    - ### 从接口继承的嵌套类/接口 tee3.webrtc.VideoCapturer

      `VideoCapturer.CapturerObserver`

  - ### 方法概要

    所有方法 实例方法 抽象方法 默认方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `default void` | `addMediaRecorderToCamera(android.media.MediaRecorder mediaRecorder, CameraVideoCapturer.MediaRecorderHandler resultHandler)` 已过时。
    `default void` | `removeMediaRecorderFromCamera(CameraVideoCapturer.MediaRecorderHandler resultHandler)` 已过时。
    `void` | `switchCamera(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler)` Switch camera to the next valid camera id.

    - ### 从接口继承的方法 tee3.webrtc.VideoCapturer

      `changeCaptureFormat, dispose, initialize, isScreencast, startCapture, stopCapture`

- - ### 方法详细资料

    - #### 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.

    - #### addMediaRecorderToCamera

          @Deprecated
          default void addMediaRecorderToCamera(android.media.MediaRecorder mediaRecorder,
                                                             CameraVideoCapturer.MediaRecorderHandler resultHandler)

      已过时。
      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)

      已过时。
      Remove MediaRecorder from camera pipeline. This can only be called while the camera is running. This function can be called from any thread.