PlayerStreamInfo
- Unity
更新时间不可用
播放器媒体流的所有信息。
public class PlayerStreamInfo
{
public int streamIndex { set; get; }
public MEDIA_STREAM_TYPE streamType { set; get; }
public string codecName { set; get; }
public string language { set; get; }
public int videoFrameRate { set; get; }
public int videoBitRate { set; get; }
public int videoWidth { set; get; }
public int videoHeight { set; get; }
public int videoRotation { set; get; }
public int audioSampleRate { set; get; }
public int audioChannels { set; get; }
public int audioBitsPerSample { set; get;
public int64_t duration { set; get; }
public PlayerStreamInfo()
{
streamIndex = 0;
streamType = MEDIA_STREAM_TYPE.STREAM_TYPE_UNKNOWN;
videoFrameRate = 0;
videoBitRate = 0;
videoWidth = 0;
videoHeight = 0;
videoRotation = 0;
audioSampleRate = 0;
audioChannels = 0;
audioBitsPerSample = 0;
duration = 0;
codecName = "";
language = "";
}
};属性
| 参数名 | 描述 |
|---|---|
streamIndex | |
streamType | 此条媒体流的类型。详见 MEDIA_STREAM_TYPE。 |
codecName | |
language | |
videoFrameRate | |
videoBitRate | |
videoWidth | |
videoHeight | |
videoRotation | |
audioSampleRate | |
audioChannels | |
audioBitsPerSample | |
duration |