Package io.agora.rtc2.video
Class EncodedVideoFrameInfo
java.lang.Object
io.agora.rtc2.video.EncodedVideoFrameInfo
The EncodedVideoFrameInfo class, which defines the format of the
encoded video frame.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThis is a input parameter which means the timestamp for capturing the video.intThe codec type.longThis is a output parameter which means timestamp for decoding the video frame.intThe number of frames per second of this frame.intThe frame type: - 0: `VIDEO_FRAME_TYPE_BLANK_FRAME`.intThe height of this frame.intThe rotation information (clockwise) of this frame.intThe stream type of video frame.intThe track ID.intID of the user who sends this video.intThe width of this frame. -
Constructor Summary
ConstructorsConstructorDescriptionEncodedVideoFrameInfo(int codecType, int width, int height, int framesPerSecond, int frameType, int rotation, int trackId, long captureTimeMs, long decodeTimeMs, int uid, int streamType) -
Method Summary
-
Field Details
-
uid
public int uidID of the user who sends this video. -
codecType
public int codecTypeThe codec type. - 1: `VIDEO_CODEC_VP8`. - 2: (Default) `VIDEO_CODEC_H264`. - 13: `VIDEO_CODEC_VP9`. -
width
public int widthThe width of this frame. -
height
public int heightThe height of this frame. -
framesPerSecond
public int framesPerSecondThe number of frames per second of this frame. -
frameType
public int frameTypeThe 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 rotationThe rotation information (clockwise) of this frame. Set it as 0, 90, 180 or 270. -
trackId
public int trackIdThe track ID. This member is used for scenarios with multiple video tracks. -
captureTimeMs
public long captureTimeMsThis is a input parameter which means the timestamp for capturing the video. -
decodeTimeMs
public long decodeTimeMsThis is a output parameter which means timestamp for decoding the video frame. -
streamType
public int streamTypeThe 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
-