onCapturedAudioSpectrumUpdate property

(void Function(List<double> audioSpectrum)?) onCapturedAudioSpectrumUpdate
read / write

The local captured audio spectrum callback.

Available since: 1.1.0 Description: The local captured audio spectrum callback. Trigger: After you start the audio spectrum monitor by calling startAudioSpectrumMonitor. Caution: The callback notification period is the parameter value set when the startAudioSpectrumMonitor is called. The callback value is the default value of 0 When you have not called the interface startPublishingStream and startPreview. Related APIs: Start audio spectrum monitoring via startAudioSpectrumMonitor. Monitoring remote played audio spectrum by callback onRemoteAudioSpectrumUpdate

  • audioSpectrum Locally captured audio spectrum value list. Spectrum value range is 0-2^30.

Implementation

static void Function(List<double> audioSpectrum)?
    onCapturedAudioSpectrumUpdate;