VideoTrack

tee3.webrtc

## 类 VideoTrack

- java.lang.Object
- - tee3.webrtc.MediaStreamTrack
  - - tee3.webrtc.VideoTrack

-     public class VideoTrack
      extends MediaStreamTrack

  Java version of VideoTrackInterface.

- - ### 嵌套类概要

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

      `MediaStreamTrack.MediaType, MediaStreamTrack.State`

  - ### 字段概要

    - ### 从类继承的字段 tee3.webrtc.MediaStreamTrack

      `AUDIO_TRACK_KIND, VIDEO_TRACK_KIND`

  - ### 构造器概要

    构造器
    构造器和说明
    `VideoTrack(long nativeTrack)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addRenderer(VideoRenderer renderer)`
    `void` | `addSink(VideoSink sink)` Adds a VideoSink to the track.
    `void` | `dispose()`
    `void` | `removeRenderer(VideoRenderer renderer)`
    `void` | `removeSink(VideoSink sink)` Removes a VideoSink from the track.

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

      `enabled, id, kind, setEnabled, state`

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

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

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

    - #### VideoTrack

          public VideoTrack(long nativeTrack)

  - ### 方法详细资料

    - #### addSink

          public void addSink(VideoSink sink)

      Adds a VideoSink to the track. A track can have any number of VideoSinks. VideoSinks will replace renderers. However, converting old style texture frames will involve costly conversion to I420 so it is not recommended to upgrade before all your sources produce VideoFrames.

    - #### removeSink

          public void removeSink(VideoSink sink)

      Removes a VideoSink from the track. If the VideoSink was not attached to the track, this is a no-op.

    - #### addRenderer

          public void addRenderer(VideoRenderer renderer)

    - #### removeRenderer

          public void removeRenderer(VideoRenderer renderer)

    - #### dispose

          public void dispose()

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