PlayerStreamInfo

All information of the player media stream.

class PlayerStreamInfo {
  const PlayerStreamInfo(
      {this.streamIndex,
      this.streamType,
      this.codecName,
      this.language,
      this.videoFrameRate,
      this.videoBitRate,
      this.videoWidth,
      this.videoHeight,
      this.videoRotation,
      this.audioSampleRate,
      this.audioChannels,
      this.audioBitsPerSample,
      this.duration});

  @JsonKey(name: 'streamIndex')
  final int? streamIndex;
  @JsonKey(name: 'streamType')
  final MediaStreamType? streamType;
  @JsonKey(name: 'codecName')
  final String? codecName;
  @JsonKey(name: 'language')
  final String? language;
  @JsonKey(name: 'videoFrameRate')
  final int? videoFrameRate;
  @JsonKey(name: 'videoBitRate')
  final int? videoBitRate;
  @JsonKey(name: 'videoWidth')
  final int? videoWidth;
  @JsonKey(name: 'videoHeight')
  final int? videoHeight;
  @JsonKey(name: 'videoRotation')
  final int? videoRotation;
  @JsonKey(name: 'audioSampleRate')
  final int? audioSampleRate;
  @JsonKey(name: 'audioChannels')
  final int? audioChannels;
  @JsonKey(name: 'audioBitsPerSample')
  final int? audioBitsPerSample;
  @JsonKey(name: 'duration')
  final int? duration;
  factory PlayerStreamInfo.fromJson(Map<String, dynamic> json) =>
      _$PlayerStreamInfoFromJson(json);
  Map<String, dynamic> toJson() => _$PlayerStreamInfoToJson(this);
}

Properties

streamIndex
The index of the media stream.
streamType
The type of this media stream. See MediaStreamType.
codecName
The codec specification of this media stream.
language
The language of this 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).