PlayerStreamInfo

All information about the player 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;
}

Properties

streamIndex
The index of the media stream.
streamType
The type of the media stream. See MediaStreamType.
codecName
The codec specification of the media stream.
language
The language of the media stream.
videoFrameRate
Applies to video streams only. Indicates the video frame rate (fps).
videoBitRate
Applies to video streams only. Indicates the video bitrate (bps).
videoWidth
Applies to video streams only. Indicates the video width (px).
videoHeight
Applies to video streams only. Indicates the video height (px).
videoRotation
Applies to video streams only. Indicates the rotation angle.
audioSampleRate
Applies to audio streams only. Indicates the audio sample rate (Hz).
audioChannels
Applies to audio streams only. Indicates the number of audio channels.
audioBitsPerSample
Applies to audio streams only. Indicates the number of bits per audio sample (bit).
duration
The duration of the media stream (milliseconds).