VideoSource

tee3.webrtc

## 类 VideoSource

- java.lang.Object
- - tee3.webrtc.MediaSource
  - - tee3.webrtc.VideoSource

-     public class VideoSource
      extends MediaSource

  Java wrapper of native AndroidVideoTrackSource.

- - ### 嵌套类概要

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

      `MediaSource.State`

  - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `adaptOutputFormat(int width, int height, int fps)` Calling this function will cause frames to be scaled down to the requested resolution.
    `void` | `dispose()`
    `VideoCapturer.CapturerObserver` | `getCapturerObserver()`
    `void` | `setPreviewCallback(NativeCapturerObserver.PreviewCallback callback)`

    - ### 从类继承的方法 tee3.webrtc.MediaSource

      `state`

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

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

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

    - #### VideoSource

          public VideoSource(long nativeSource)

    - #### VideoSource

          public VideoSource(long nativeSource,
                             SurfaceTextureHelper surfaceTextureHelper)

  - ### 方法详细资料

    - #### adaptOutputFormat

          public void adaptOutputFormat(int width,
                                        int height,
                                        int fps)

      Calling this function will cause frames to be scaled down to the requested resolution. Also, frames will be cropped to match the requested aspect ratio, and frames will be dropped to match the requested fps. The requested aspect ratio is orientation agnostic and will be adjusted to maintain the input orientation, so it doesn't matter if e.g. 1280x720 or 720x1280 is requested.

    - #### getCapturerObserver

          public VideoCapturer.CapturerObserver getCapturerObserver()

    - #### setPreviewCallback

          public void setPreviewCallback(NativeCapturerObserver.PreviewCallback callback)

    - #### dispose

          public void dispose()

      覆盖:
        `dispose` 在类中 `MediaSource`