NativeCapturerObserver

tee3.webrtc

## 类 NativeCapturerObserver

- java.lang.Object
- - tee3.webrtc.NativeCapturerObserver

- 所有已实现的接口:
    VideoCapturer.CapturerObserver

      public class NativeCapturerObserver
      extends java.lang.Object
      implements VideoCapturer.CapturerObserver

  Implements VideoCapturer.CapturerObserver and feeds frames to webrtc::jni::AndroidVideoTrackSource.

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static interface` | `NativeCapturerObserver.PreviewCallback`

  - ### 构造器概要

    构造器
    构造器和说明
    `NativeCapturerObserver(long nativeSource)`
    `NativeCapturerObserver(long nativeSource, SurfaceTextureHelper surfaceTextureHelper)`

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `dispose()`
    `void` | `onByteBufferFrameCaptured(byte[] data, int width, int height, int rotation, long timestampNs)`
    `void` | `onCapturerStarted(boolean success)`
    `void` | `onCapturerStopped()`
    `void` | `onFrameCaptured(VideoFrame frame)`
    `void` | `onTextureFrameCaptured(int width, int height, int oesTextureId, float[] transformMatrix, int rotation, long timestampNs)`
    `static void` | `setCameraOrientationOffset(int orientation)`
    `void` | `setPreviewCallback(NativeCapturerObserver.PreviewCallback callback)`

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

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

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

    - #### NativeCapturerObserver

          public NativeCapturerObserver(long nativeSource)

    - #### NativeCapturerObserver

          public NativeCapturerObserver(long nativeSource,
                                        SurfaceTextureHelper surfaceTextureHelper)

  - ### 方法详细资料

    - #### onCapturerStarted

          public void onCapturerStarted(boolean success)

      指定者:
        `onCapturerStarted` 在接口中 `VideoCapturer.CapturerObserver`

    - #### onCapturerStopped

          public void onCapturerStopped()

      指定者:
        `onCapturerStopped` 在接口中 `VideoCapturer.CapturerObserver`

    - #### onByteBufferFrameCaptured

          public void onByteBufferFrameCaptured(byte[] data,
                                                int width,
                                                int height,
                                                int rotation,
                                                long timestampNs)

      指定者:
        `onByteBufferFrameCaptured` 在接口中 `VideoCapturer.CapturerObserver`

    - #### onTextureFrameCaptured

          public void onTextureFrameCaptured(int width,
                                             int height,
                                             int oesTextureId,
                                             float[] transformMatrix,
                                             int rotation,
                                             long timestampNs)

      指定者:
        `onTextureFrameCaptured` 在接口中 `VideoCapturer.CapturerObserver`

    - #### onFrameCaptured

          public void onFrameCaptured(VideoFrame frame)

      指定者:
        `onFrameCaptured` 在接口中 `VideoCapturer.CapturerObserver`

    - #### dispose

          public void dispose()

    - #### setCameraOrientationOffset

          public static void setCameraOrientationOffset(int orientation)

    - #### setPreviewCallback

          public void setPreviewCallback(NativeCapturerObserver.PreviewCallback callback)