onMediaPlayerFrequencySpectrumUpdate method
The callback of frequency spectrum update.
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 is0-2^30
.
Implementation
void onMediaPlayerFrequencySpectrumUpdate(
ZegoMediaPlayer mediaPlayer,
List<double> spectrumList,
) {}