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 the AudioSpectrumObserver and calling enableAudioSpectrumMonitor to enable audio spectrum monitoring, the SDK will trigger the callback as the time interval you set to report the received remote audio data spectrum.

  • spectrums The audio spectrum information of the remote user, see UserAudioSpectrumInfo. The number of arrays is the number of remote users monitored by the SDK. If the array is null, it means that no audio spectrum of remote users is detected.
  • spectrumNumber The number of remote users.

Implementation

final void Function(
        List<UserAudioSpectrumInfo> spectrums, int spectrumNumber)?
    onRemoteAudioSpectrum;