Class EncodedVideoFrameInfo

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

public class EncodedVideoFrameInfo extends Object
The EncodedVideoFrameInfo class, which defines the format of the encoded video frame.
  • Field Details

    • uid

      public int uid
      ID of the user who sends this video.
    • codecType

      public int codecType
      The codec type. - 1: `VIDEO_CODEC_VP8`. - 2: (Default) `VIDEO_CODEC_H264`. - 13: `VIDEO_CODEC_VP9`.
    • width

      public int width
      The width of this frame.
    • height

      public int height
      The height of this frame.
    • framesPerSecond

      public int framesPerSecond
      The number of frames per second of this frame.
    • frameType

      public int frameType
      The frame type: - 0: `VIDEO_FRAME_TYPE_BLANK_FRAME`. - 3: `VIDEO_FRAME_TYPE_KEY_FRAME`. - 4: `VIDEO_FRAME_TYPE_DELTA_FRAME`. - 5: `VIDEO_FRAME_TYPE_B_FRAME`. - 6: `VIDEO_FRAME_TYPE_UNKNOWN`.
    • rotation

      public int rotation
      The rotation information (clockwise) of this frame. Set it as 0, 90, 180 or 270.
    • trackId

      public int trackId
      The track ID. This member is used for scenarios with multiple video tracks.
    • captureTimeMs

      public long captureTimeMs
      This is a input parameter which means the timestamp for capturing the video.
    • decodeTimeMs

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

      public int streamType
      The stream type of video frame.
  • 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 uid, int streamType)
  • Method Details

    • getUid

      public int getUid()
    • 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