onMediaPlayerFrequencySpectrumUpdate property

(void Function(ZegoMediaPlayer mediaPlayer, List<double> spectrumList)?) onMediaPlayerFrequencySpectrumUpdate
getter/setter pair

The callback of frequency spectrum update.

Available since: 2.15.0 Description: The callback of frequency spectrum update. Trigger: The callback frequency is specified by EnableFrequencySpectrumMonitor. Caution: The callback does not actually take effect until call setEventHandler to set. Related APIs: To monitor this callback, you need to enable it through EnableFrequencySpectrumMonitor.

  • mediaPlayer Callback player object.
  • spectrumList Locally captured frequency spectrum value list. Spectrum value range is 0-2^30.

Implementation

static void Function(ZegoMediaPlayer mediaPlayer, List<double> spectrumList)?
    onMediaPlayerFrequencySpectrumUpdate;