Class EncodedVideoFrameInfo

java.lang.Object
io.agora.rtc2.video.EncodedVideoFrameInfo

public class EncodedVideoFrameInfo extends Object
  • Field Details

    • codecType

      public int codecType
      The codec type of the video: - VIDEO_CODEC_VP8 (1): VP8. - VIDEO_CODEC_H264 (2): H.264. - VIDEO_CODEC_H265 (3): (Default) H.265.
    • width

      public int width
      Width (pixel) of the video frame.
    • height

      public int height
      Height (pixel) of the video frame.
    • framesPerSecond

      public int framesPerSecond
      The number of video frames per second. When this parameter is not `0`, you can use it to calculate the Unix timestamp of externally encoded video frames.
    • frameType

      public int frameType
      The video frame type. - 0: (Default) VIDEO_FRAME_TYPE_BLANK_FRAME, a blank frame. - 3: VIDEO_FRAME_TYPE_KEY_FRAME, a key frame. - 4: VIDEO_FRAME_TYPE_DELTA_FRAME, a Delta frame. - 5: VIDEO_FRAME_TYPE_B_FRAME, a B frame. - 6: VIDEO_FRAME_TYPE_UNKNOW, an unknown frame.
    • rotation

      public int rotation
      Rotation information of the video frame, as the following: - 0: (Default) 0 degree. - 90: 90 degrees. - 180: 180 degrees. - 270: 270 degrees.
    • trackId

      public int trackId
      Reserved for future use.
    • captureTimeMs

      public long captureTimeMs
      The Unix timestamp (ms) for capturing the external encoded video frames.
    • decodeTimeMs

      public long decodeTimeMs
      This is a output parameter which means timestamp for decoding the video frame.
    • streamType

      public int streamType
      The type of video streams.
  • Constructor Details

    • EncodedVideoFrameInfo

      public EncodedVideoFrameInfo()
    • EncodedVideoFrameInfo

      public EncodedVideoFrameInfo(int codecType, int width, int height, int framesPerSecond, int frameType, int rotation, int trackId, long captureTimeMs, long decodeTimeMs, int streamType)
  • Method Details

    • getCodecType

      public int getCodecType()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getFramesPerSecond

      public int getFramesPerSecond()
    • getFrameType

      public int getFrameType()
    • getRotation

      public int getRotation()
    • getTrackId

      public int getTrackId()
    • getCaptureTimeMs

      public long getCaptureTimeMs()
    • getDecodeTimeMs

      public long getDecodeTimeMs()
    • getStreamType

      public int getStreamType()
    • toString

      public String toString()
      Overrides:
      toString in class Object