EncodedAudioFrameInfo
编码后音频的信息。
Dart
class EncodedAudioFrameInfo {
const EncodedAudioFrameInfo(
{this.codec,
this.sampleRateHz,
this.samplesPerChannel,
this.numberOfChannels,
this.advancedSettings,
this.captureTimeMs});
(name: 'codec')
final AudioCodecType? codec;
(name: 'sampleRateHz')
final int? sampleRateHz;
(name: 'samplesPerChannel')
final int? samplesPerChannel;
(name: 'numberOfChannels')
final int? numberOfChannels;
(name: 'advancedSettings')
final EncodedAudioFrameAdvancedSettings? advancedSettings;
(name: 'captureTimeMs')
final int? captureTimeMs;
factory EncodedAudioFrameInfo.fromJson(Map<String, dynamic> json) =>
_$EncodedAudioFrameInfoFromJson(json);
Map<String, dynamic> toJson() => _$EncodedAudioFrameInfoToJson(this);
}
codec
音频编码规格: AudioCodecType。
sampleRateHz
音频采样率 (Hz)。
samplesPerChannel
每个声道的音频采样数。
numberOfChannels
声道数。
advancedSettings
该功能暂不支持。
captureTimeMs
采集外部编码视频帧的 Unix 时间戳 (ms)。