VideoFileRenderer

tee3.webrtc

## 类 VideoFileRenderer

- java.lang.Object
- - tee3.webrtc.VideoFileRenderer

- 所有已实现的接口:
    VideoSink

      public class VideoFileRenderer
      extends java.lang.Object
      implements VideoSink

  Can be used to save the video frames to file.

- - ### 构造器概要

    构造器
    构造器和说明
    `VideoFileRenderer(java.lang.String outputFile, int outputFileWidth, int outputFileHeight, EglBase.Context sharedContext)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `onFrame(VideoFrame frame)` Implementations should call frame.retain() if they need to hold a reference to the frame after this function returns.
    `void` | `release()` Release all resources.

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

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

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

    - #### VideoFileRenderer

          public VideoFileRenderer(java.lang.String outputFile,
                                   int outputFileWidth,
                                   int outputFileHeight,
                                   EglBase.Context sharedContext)
                            throws java.io.IOException

      抛出:
        `java.io.IOException`

  - ### 方法详细资料

    - #### onFrame

          public void onFrame(VideoFrame frame)

      从接口复制的说明: `VideoSink`
      Implementations should call frame.retain() if they need to hold a reference to the frame after this function returns. Each call to retain() should be followed by a call to frame.release() when the reference is no longer needed.
      指定者:
        `onFrame` 在接口中 `VideoSink`

    - #### release

          public void release()

      Release all resources. All already posted frames will be rendered first.