Camera1Capturer

tee3.webrtc

## 类 Camera1Capturer

- java.lang.Object
- - tee3.webrtc.Camera1Capturer

- 所有已实现的接口:
    CameraVideoCapturer, VideoCapturer

      public class Camera1Capturer
      extends java.lang.Object

- - ### 嵌套类概要

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

      `CameraVideoCapturer.CameraEventsHandler, CameraVideoCapturer.CameraStatistics, CameraVideoCapturer.CameraSwitchHandler, CameraVideoCapturer.MediaRecorderHandler`

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

      `VideoCapturer.CapturerObserver`

  - ### 构造器概要

    构造器
    构造器和说明
    `Camera1Capturer(java.lang.String cameraName, CameraVideoCapturer.CameraEventsHandler eventsHandler, boolean captureToTexture)`

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `changeCaptureFormat(int width, int height, int framerate)`
    `protected void` | `createCameraSession(tee3.webrtc.CameraSession.CreateSessionCallback createSessionCallback, tee3.webrtc.CameraSession.Events events, android.content.Context applicationContext, SurfaceTextureHelper surfaceTextureHelper, java.lang.String cameraName, int width, int height, int framerate)`
    `void` | `dispose()` Perform any final cleanup here.
    `protected java.lang.String` | `getCameraName()`
    `void` | `initialize(SurfaceTextureHelper surfaceTextureHelper, android.content.Context applicationContext, VideoCapturer.CapturerObserver capturerObserver)` This function is used to initialize the camera thread, the android application context, and the capture observer.
    `boolean` | `isScreencast()`
    `void` | `printStackTrace()`
    `static void` | `setCameraOrientation(int orientation)`
    `void` | `startCapture(int width, int height, int framerate)` Start capturing frames in a format that is as close as possible to `width x height` and `framerate`.
    `void` | `stopCapture()` Stop capturing.
    `void` | `switchCamera(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler)` Switch camera to the next valid camera id.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

      `addMediaRecorderToCamera, removeMediaRecorderFromCamera`

- - ### 构造器详细资料

    - #### Camera1Capturer

          public Camera1Capturer(java.lang.String cameraName,
                                 CameraVideoCapturer.CameraEventsHandler eventsHandler,
                                 boolean captureToTexture)

  - ### 方法详细资料

    - #### createCameraSession

          protected void createCameraSession(tee3.webrtc.CameraSession.CreateSessionCallback createSessionCallback,
                                             tee3.webrtc.CameraSession.Events events,
                                             android.content.Context applicationContext,
                                             SurfaceTextureHelper surfaceTextureHelper,
                                             java.lang.String cameraName,
                                             int width,
                                             int height,
                                             int framerate)

    - #### setCameraOrientation

          public static void setCameraOrientation(int orientation)

    - #### initialize

          public void initialize(@Nullable
                                 SurfaceTextureHelper surfaceTextureHelper,
                                 android.content.Context applicationContext,
                                 VideoCapturer.CapturerObserver capturerObserver)

      从接口复制的说明: `VideoCapturer`
      This function is used to initialize the camera thread, the android application context, and the capture observer. It will be called only once and before any startCapture() request. The camera thread is guaranteed to be valid until dispose() is called. If the VideoCapturer wants to deliver texture frames, it should do this by rendering on the SurfaceTexture in `surfaceTextureHelper`, register itself as a listener, and forward the frames to CapturerObserver.onFrameCaptured(). The caller still has ownership of `surfaceTextureHelper` and is responsible for making sure surfaceTextureHelper.dispose() is called. This also means that the caller can reuse the SurfaceTextureHelper to initialize a new VideoCapturer once the previous VideoCapturer has been disposed.
      指定者:
        `initialize` 在接口中 `VideoCapturer`

    - #### startCapture

          public void startCapture(int width,
                                   int height,
                                   int framerate)

      从接口复制的说明: `VideoCapturer`
      Start capturing frames in a format that is as close as possible to `width x height` and `framerate`.
      指定者:
        `startCapture` 在接口中 `VideoCapturer`

    - #### stopCapture

          public void stopCapture()

      从接口复制的说明: `VideoCapturer`
      Stop capturing. This function should block until capture is actually stopped.
      指定者:
        `stopCapture` 在接口中 `VideoCapturer`

    - #### changeCaptureFormat

          public void changeCaptureFormat(int width,
                                          int height,
                                          int framerate)

      指定者:
        `changeCaptureFormat` 在接口中 `VideoCapturer`

    - #### dispose

          public void dispose()

      从接口复制的说明: `VideoCapturer`
      Perform any final cleanup here. No more capturing will be done after this call.
      指定者:
        `dispose` 在接口中 `VideoCapturer`

    - #### switchCamera

          public void switchCamera(CameraVideoCapturer.CameraSwitchHandler switchEventsHandler)

      从接口复制的说明: `CameraVideoCapturer`
      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` 在接口中 `CameraVideoCapturer`

    - #### isScreencast

          public boolean isScreencast()

      指定者:
        `isScreencast` 在接口中 `VideoCapturer`
      返回:
        true if-and-only-if this is a screen capturer.

    - #### printStackTrace

          public void printStackTrace()

    - #### getCameraName

          protected java.lang.String getCameraName()