enableFrequencySpectrumMonitor abstract method

Future<void> enableFrequencySpectrumMonitor(
  1. bool enable,
  2. int millisecond
)

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.

  • enable Whether to enable monitoring, true is enabled, false is disabled.
  • millisecond Monitoring time period of the frequency spectrum, in milliseconds, has a value range of 100, 3000.

Implementation

Future<void> enableFrequencySpectrumMonitor(bool enable, int millisecond);