PlayerStreamInfo

All information about the media stream of the player.

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 = "";
        }
    };

Properties

streamIndex
Index of the media stream.
streamType
Type of the media stream. See MEDIA_STREAM_TYPE.
codecName
Codec specification of the media stream.
language
Language of the media stream.
videoFrameRate
This parameter applies only to video streams and indicates the video frame rate (fps).
videoBitRate
This parameter applies only to video streams and indicates the video bitrate (bps).
videoWidth
This parameter applies only to video streams and indicates the video width (px).
videoHeight
This parameter applies only to video streams and indicates the video height (px).
videoRotation
This parameter applies only to video streams and indicates the rotation angle.
audioSampleRate
This parameter applies only to audio streams and indicates the audio sample rate (Hz).
audioChannels
This parameter applies only to audio streams and indicates the number of audio channels.
audioBitsPerSample
This parameter applies only to audio streams and indicates the number of bits per audio sample (bit).
duration
Duration of the media stream (milliseconds).