enableFrequencySpectrumMonitor abstract method
Whether to enable frequency spectrum monitoring.
Available since: 2.15.0
Description: Whether to enable frequency spectrum monitoring.
When to call: It can be called after the engine by createEngine has been initialized and the media player has been created by createMediaPlayer.
Restrictions: None.
Related APIs: After it is turned on, user can use the onMediaPlayerFrequencySpectrumUpdate callback to monitor frequency spectrum updates.
enableWhether to enable monitoring, true is enabled, false is disabled.millisecondMonitoring time period of the frequency spectrum, in milliseconds, has a value range of10, 3000. Note that on v3.19.0 and older version, the value range is100, 3000.
Implementation
Future<void> enableFrequencySpectrumMonitor(bool enable, int millisecond);