文档中心
服务端网关
API 参考
服务端网关 SDK Java API 参考
|
| EncodedVideoFrameInfo () |
|
| EncodedVideoFrameInfo (int codecType, int width, int height, int framesPerSecond, int frameType, int rotation, int trackId, long captureTimeMs, long renderTimeMs, long internalSendTs, int uid, int streamType) |
|
int | getCodecType () |
|
void | setCodecType (int codecType) |
|
int | getWidth () |
|
void | setWidth (int width) |
|
int | getHeight () |
|
void | setHeight (int height) |
|
int | getFramesPerSecond () |
|
void | setFramesPerSecond (int framesPerSecond) |
|
int | getFrameType () |
|
void | setFrameType (int frameType) |
|
int | getRotation () |
|
void | setRotation (int rotation) |
|
int | getTrackId () |
|
void | setTrackId (int trackId) |
|
long | getCaptureTimeMs () |
|
void | setCaptureTimeMs (long captureTimeMs) |
|
long | getDecodeTimeMs () |
|
void | setDecodeTimeMs (long decodeTimeMs) |
|
long | getInternalSendTs () |
|
void | setInternalSendTs (long internalSendTs) |
|
int | getUid () |
|
void | setUid (int uid) |
|
int | getStreamType () |
|
void | setStreamType (int streamType) |
|
◆ EncodedVideoFrameInfo() [1/2]
io.agora.rtc.EncodedVideoFrameInfo.EncodedVideoFrameInfo |
( |
| ) |
|
◆ EncodedVideoFrameInfo() [2/2]
io.agora.rtc.EncodedVideoFrameInfo.EncodedVideoFrameInfo |
( |
int |
codecType, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
framesPerSecond, |
|
|
int |
frameType, |
|
|
int |
rotation, |
|
|
int |
trackId, |
|
|
long |
captureTimeMs, |
|
|
long |
renderTimeMs, |
|
|
long |
internalSendTs, |
|
|
int |
uid, |
|
|
int |
streamType |
|
) |
| |
构造函数。
- 参数
-
codecType | 视频编码类型
- 0:无。
- 1:VP8。
- 2:H.264。
- 3:H.265。
- 5:VP9。
- 6:Generic。
- 7:Generic H264。
- 12:AV1。
- 20:JPEG。
|
width | 视频宽度(像素)。 |
height | 视频高度(像素)。 |
framesPerSecond | 每秒的视频帧数量。用于计算编码视频帧的时间戳。 |
frameType | 已编码视频帧类型。
- 0:空白帧。
- 3:关键帧。对于 H.264 编码格式,SDK 把带有 sps 和 pps 信息的 I 帧归类为关键帧。
- 4:Delta 帧。对于 H.264 编码格式,SDK 把 P 帧和不带 sps 和 pps 信息的 I 帧都归类为 Delta 帧。
- 5:B 帧。
- 6:丢弃帧。
- 7:未知。
|
rotation | 已编码视频帧旋转信息。
- 0:顺时针旋转 0 度。
- 90:顺时针旋转 90 度。
- 180:顺时针旋转 180 度。
- 270:顺时针旋转 270 度。
|
trackId | 视频帧的轨道 ID。 |
captureTimeMs | 视频采集时间戳(毫秒)。 |
renderTimeMs | 视频渲染时间戳(毫秒)。 |
internalSendTs | 该时间戳用于音视频同步。你可以通过 onEncodedVideoImageReceived 回调获取。encodedFrameOnly 需要设为 0 。 |
uid | 用户 ID。 |
streamType | 视频流类型。
VIDEO_STREAM_HIGH (0): 视频大流,即高分辨率、高码率视频流。
VIDEO_STREAM_LOW (1): 视频小流,即低分辨率、低码率视频流。
|
◆ getCaptureTimeMs()
long io.agora.rtc.EncodedVideoFrameInfo.getCaptureTimeMs |
( |
| ) |
|
◆ getCodecType()
int io.agora.rtc.EncodedVideoFrameInfo.getCodecType |
( |
| ) |
|
◆ getDecodeTimeMs()
long io.agora.rtc.EncodedVideoFrameInfo.getDecodeTimeMs |
( |
| ) |
|
◆ getFramesPerSecond()
int io.agora.rtc.EncodedVideoFrameInfo.getFramesPerSecond |
( |
| ) |
|
◆ getFrameType()
int io.agora.rtc.EncodedVideoFrameInfo.getFrameType |
( |
| ) |
|
◆ getHeight()
int io.agora.rtc.EncodedVideoFrameInfo.getHeight |
( |
| ) |
|
◆ getInternalSendTs()
long io.agora.rtc.EncodedVideoFrameInfo.getInternalSendTs |
( |
| ) |
|
◆ getRotation()
int io.agora.rtc.EncodedVideoFrameInfo.getRotation |
( |
| ) |
|
◆ getStreamType()
int io.agora.rtc.EncodedVideoFrameInfo.getStreamType |
( |
| ) |
|
◆ getTrackId()
int io.agora.rtc.EncodedVideoFrameInfo.getTrackId |
( |
| ) |
|
◆ getUid()
int io.agora.rtc.EncodedVideoFrameInfo.getUid |
( |
| ) |
|
◆ getWidth()
int io.agora.rtc.EncodedVideoFrameInfo.getWidth |
( |
| ) |
|
◆ setCaptureTimeMs()
void io.agora.rtc.EncodedVideoFrameInfo.setCaptureTimeMs |
( |
long |
captureTimeMs | ) |
|
◆ setCodecType()
void io.agora.rtc.EncodedVideoFrameInfo.setCodecType |
( |
int |
codecType | ) |
|
◆ setDecodeTimeMs()
void io.agora.rtc.EncodedVideoFrameInfo.setDecodeTimeMs |
( |
long |
decodeTimeMs | ) |
|
◆ setFramesPerSecond()
void io.agora.rtc.EncodedVideoFrameInfo.setFramesPerSecond |
( |
int |
framesPerSecond | ) |
|
◆ setFrameType()
void io.agora.rtc.EncodedVideoFrameInfo.setFrameType |
( |
int |
frameType | ) |
|
◆ setHeight()
void io.agora.rtc.EncodedVideoFrameInfo.setHeight |
( |
int |
height | ) |
|
◆ setInternalSendTs()
void io.agora.rtc.EncodedVideoFrameInfo.setInternalSendTs |
( |
long |
internalSendTs | ) |
|
◆ setRotation()
void io.agora.rtc.EncodedVideoFrameInfo.setRotation |
( |
int |
rotation | ) |
|
◆ setStreamType()
void io.agora.rtc.EncodedVideoFrameInfo.setStreamType |
( |
int |
streamType | ) |
|
◆ setTrackId()
void io.agora.rtc.EncodedVideoFrameInfo.setTrackId |
( |
int |
trackId | ) |
|
◆ setUid()
void io.agora.rtc.EncodedVideoFrameInfo.setUid |
( |
int |
uid | ) |
|
◆ setWidth()
void io.agora.rtc.EncodedVideoFrameInfo.setWidth |
( |
int |
width | ) |
|
该类的文档由以下文件生成: