PlayerStreamInfo

The detailed information of the media stream.

export class PlayerStreamInfo {

  streamIndex?: number;

  streamType?: MediaStreamType;

  codecName?: string;

  language?: string;

  videoFrameRate?: number;

  videoBitRate?: number;

  videoWidth?: number;

  videoHeight?: number;

  videoRotation?: number;

  audioSampleRate?: number;

  audioChannels?: number;

  audioBitsPerSample?: number;

  duration?: number;
}

Attributes

streamIndex
The index of the media stream.
streamType
The type of the media stream. See MediaStreamType.
codecName
The codec of the media stream.
language
The language of the media stream.
videoFrameRate
This parameter only takes effect for video streams, and indicates the video frame rate (fps).
videoBitrate
This parameter only takes effect for video streams, and indicates the video bitrate (bps).
videoWidth
This parameter only takes effect for video streams, and indicates the video width (pixel).
videoHeight
This parameter only takes effect for video streams, and indicates the video height (pixel).
videoRotation
This parameter only takes effect for video streams, and indicates the video rotation angle.
audioSampleRate
This parameter only takes effect for audio streams, and indicates the audio sample rate (Hz).
audioChannels
This parameter only takes effect for audio streams, and indicates the audio channel number.
audioBitsPerSample
This parameter only takes effect for audio streams, and indicates the bit number of each audio sample.
duration
The total duration (ms) of the media stream.