EncodedAudioFrameInfo

Audio information after encoding.

class EncodedAudioFrameInfo {
  const EncodedAudioFrameInfo(
      {this.codec,
      this.sampleRateHz,
      this.samplesPerChannel,
      this.numberOfChannels,
      this.advancedSettings,
      this.captureTimeMs});

  @JsonKey(name: 'codec')
  final AudioCodecType? codec;

  @JsonKey(name: 'sampleRateHz')
  final int? sampleRateHz;

  @JsonKey(name: 'samplesPerChannel')
  final int? samplesPerChannel;

  @JsonKey(name: 'numberOfChannels')
  final int? numberOfChannels;

  @JsonKey(name: 'advancedSettings')
  final EncodedAudioFrameAdvancedSettings? advancedSettings;

  @JsonKey(name: 'captureTimeMs')
  final int? captureTimeMs;

  factory EncodedAudioFrameInfo.fromJson(Map<String, dynamic> json) =>
      _$EncodedAudioFrameInfoFromJson(json);

  Map<String, dynamic> toJson() => _$EncodedAudioFrameInfoToJson(this);
}

Attributes

codec
Audio Codec type: AudioCodecType.
sampleRateHz
Audio sample rate (Hz).
samplesPerChannel
The number of audio samples per channel.
numberOfChannels
The number of audio channels.
advancedSettings
This function is currently not supported.
captureTimeMs
The Unix timestamp (ms) for capturing the external encoded video frames.