PlayerStreamInfo
- C++
更新时间
用于获取媒体流的详细信息。
struct PlayerStreamInfo {
int streamIndex;
MEDIA_STREAM_TYPE streamType;
char codecName[kMaxCharBufferLength];
char language[kMaxCharBufferLength];
int videoFrameRate;
int videoBitRate;
int videoWidth;
int videoHeight;
int videoRotation;
int audioSampleRate;
int audioChannels;
int audioBitsPerSample;
int64_t duration;
};属性
| 参数名 | 描述 |
|---|---|
streamIndex | 媒体流的索引。 |
streamType | 媒体流的类型。详见 MEDIA_STREAM_TYPE。 |
codecName | 媒体流的编解码器名称。 |
language | 媒体流的语言。 |
videoFrameRate | 仅对视频流生效,表示视频帧率(fps)。 |
videoBitRate | 仅对视频流生效,表示视频码率(bps)。 |
videoWidth | 仅对视频流生效,表示视频宽度(像素)。 |
videoHeight | 仅对视频流生效,表示视频高度(像素)。 |
videoRotation | 仅对视频流生效,表示视频旋转角度。 |
audioSampleRate | 仅对音频流生效,表示音频采样率(Hz)。 |
audioChannels | 仅对音频流生效,表示音频声道数。 |
audioBitsPerSample | 仅对音频流生效,表示每个音频采样的位数。 |
duration | 媒体流的总时长(毫秒)。 |