onRemoteAudioSpectrum property
void Function(List<UserAudioSpectrumInfo> spectrums, int spectrumNumber)?
onRemoteAudioSpectrum
final
Gets the remote audio spectrum.
After successfully calling registerAudioSpectrumObserver to implement the onRemoteAudioSpectrum callback in AudioSpectrumObserver and calling enableAudioSpectrumMonitor to enable audio spectrum monitoring, the SDK triggers this callback at the set time interval to report the spectrum of the received remote audio data.
spectrumsThe audio spectrum information of remote users. See UserAudioSpectrumInfo. The number of elements in the array equals the number of remote users detected by the SDK. An empty array means no remote audio spectrum is detected.spectrumNumberThe number of remote users.
Implementation
final void Function(
List<UserAudioSpectrumInfo> spectrums, int spectrumNumber)?
onRemoteAudioSpectrum;