Package io.agora.rtc2.video
Class EncodedVideoFrameInfo
java.lang.Object
io.agora.rtc2.video.EncodedVideoFrameInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe Unix timestamp (ms) for capturing the external encoded video frames.intThe codec type of the video: - VIDEO_CODEC_VP8 (1): VP8.longThis is a output parameter which means timestamp for decoding the video frame.intThe number of video frames per second.intThe video frame type.intHeight (pixel) of the video frame.intRotation information of the video frame, as the following: - 0: (Default) 0 degree.intThe type of video streams.intReserved for future use.intWidth (pixel) of the video frame. -
Constructor Summary
ConstructorsConstructorDescriptionEncodedVideoFrameInfo(int codecType, int width, int height, int framesPerSecond, int frameType, int rotation, int trackId, long captureTimeMs, long decodeTimeMs, int streamType) -
Method Summary
-
Field Details
-
codecType
public int codecTypeThe 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 widthWidth (pixel) of the video frame. -
height
public int heightHeight (pixel) of the video frame. -
framesPerSecond
public int framesPerSecondThe 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 frameTypeThe 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 rotationRotation information of the video frame, as the following: - 0: (Default) 0 degree. - 90: 90 degrees. - 180: 180 degrees. - 270: 270 degrees. -
trackId
public int trackIdReserved for future use. -
captureTimeMs
public long captureTimeMsThe Unix timestamp (ms) for capturing the external encoded video frames. -
decodeTimeMs
public long decodeTimeMsThis is a output parameter which means timestamp for decoding the video frame. -
streamType
public int streamTypeThe 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
-