public class EncodedVideoFrameInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
captureTimeMs
This is a input parameter which means the timestamp for capturing the video.
|
private int |
codecType
The video codec: #VIDEO_CODEC_TYPE.
|
private long |
decodeTimeMs
The timestamp for rendering the video.
|
private int |
framesPerSecond
The number of video frames per second.
|
private int |
frameType
The frame type of the encoded video frame: #VIDEO_FRAME_TYPE.
|
private int |
height
The height (px) of the video.
|
private long |
presentationMs
The presentation timestamp (PTS) of the video frame (ms).
|
private int |
rotation
The rotation information of the encoded video frame: #VIDEO_ORIENTATION.
|
private int |
streamType
The stream type of video frame.
|
private int |
trackId
This can be reserved for multiple video tracks, we need to create different
ssrc
and additional payload for later implementation.
|
private int |
uid
ID of the user.
|
private int |
width
The width (px) of the video.
|
| Constructor and Description |
|---|
EncodedVideoFrameInfo()
Default constructor for EncodedVideoFrameInfo.
|
EncodedVideoFrameInfo(int codecType,
int width,
int height,
int framesPerSecond,
int frameType,
int rotation,
int trackId,
long captureTimeMs,
long renderTimeMs,
int uid,
int streamType,
long presentationMs)
Constructs EncodedVideoFrameInfo with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCaptureTimeMs()
Gets the timestamp for capturing the video.
|
int |
getCodecType()
Gets the video codec type.
|
long |
getDecodeTimeMs()
Gets the timestamp for rendering the video.
|
int |
getFramesPerSecond()
Gets the number of video frames per second.
|
int |
getFrameType()
Gets the frame type of the encoded video frame.
|
int |
getHeight()
Gets the height (px) of the video.
|
long |
getPresentationMs()
Gets the presentation timestamp (PTS) of the video frame (ms).
|
int |
getRotation()
Gets the rotation information of the encoded video frame.
|
int |
getStreamType()
Gets the stream type of video frame.
|
int |
getTrackId()
Gets the track ID.
|
int |
getUid()
Gets the ID of the user.
|
int |
getWidth()
Gets the width (px) of the video.
|
void |
setCaptureTimeMs(long captureTimeMs)
Sets the timestamp for capturing the video.
|
void |
setCodecType(int codecType)
Sets the video codec type.
|
void |
setDecodeTimeMs(long decodeTimeMs)
Sets the timestamp for rendering the video.
|
void |
setFramesPerSecond(int framesPerSecond)
Sets the number of video frames per second.
|
void |
setFrameType(int frameType)
Sets the frame type of the encoded video frame.
|
void |
setHeight(int height)
Sets the height (px) of the video.
|
void |
setPresentationMs(long presentationMs)
Sets the presentation timestamp (PTS) of the video frame (ms).
|
void |
setRotation(int rotation)
Sets the rotation information of the encoded video frame.
|
void |
setStreamType(int streamType)
Sets the stream type of video frame.
|
void |
setTrackId(int trackId)
Sets the track ID.
|
void |
setUid(int uid)
Sets the ID of the user.
|
void |
setWidth(int width)
Sets the width (px) of the video.
|
java.lang.String |
toString() |
private int codecType
private int width
private int height
private int framesPerSecond
private int frameType
private int rotation
private int trackId
private long captureTimeMs
private long decodeTimeMs
private int uid
private int streamType
private long presentationMs
public EncodedVideoFrameInfo()
public EncodedVideoFrameInfo(int codecType,
int width,
int height,
int framesPerSecond,
int frameType,
int rotation,
int trackId,
long captureTimeMs,
long renderTimeMs,
int uid,
int streamType,
long presentationMs)
codecType - The video codec typewidth - The width (px) of the videoheight - The height (px) of the videoframesPerSecond - The number of video frames per secondframeType - The frame type of the encoded video framerotation - The rotation information of the encoded video frametrackId - The track IDcaptureTimeMs - The timestamp for capturing the videorenderTimeMs - The timestamp for rendering the videouid - ID of the userstreamType - The stream type of video framepresentationMs - The presentation timestamp (PTS) of the video frame (ms)public int getCodecType()
public void setCodecType(int codecType)
codecType - The video codec typepublic int getWidth()
public void setWidth(int width)
width - The width (px) of the videopublic int getHeight()
public void setHeight(int height)
height - The height (px) of the videopublic int getFramesPerSecond()
public void setFramesPerSecond(int framesPerSecond)
framesPerSecond - The number of video frames per secondpublic int getFrameType()
public void setFrameType(int frameType)
frameType - The frame type of the encoded video framepublic int getRotation()
public void setRotation(int rotation)
rotation - The rotation information of the encoded video framepublic int getTrackId()
public void setTrackId(int trackId)
trackId - The track IDpublic long getCaptureTimeMs()
public void setCaptureTimeMs(long captureTimeMs)
captureTimeMs - The timestamp for capturing the videopublic long getDecodeTimeMs()
public void setDecodeTimeMs(long decodeTimeMs)
decodeTimeMs - The timestamp for rendering the videopublic int getUid()
public void setUid(int uid)
uid - ID of the userpublic int getStreamType()
public void setStreamType(int streamType)
streamType - The stream type of video framepublic long getPresentationMs()
public void setPresentationMs(long presentationMs)
presentationMs - The presentation timestamp (PTS) of the video frame (ms)public java.lang.String toString()
toString in class java.lang.Object