onRemoteAudioSpectrumUpdate property

(void Function(Map<String, List<double>> audioSpectrums)?) onRemoteAudioSpectrumUpdate
getter/setter pair

The remote playing streams audio spectrum callback.

Available since: 1.1.0 Description: The remote playing streams audio spectrum callback. Trigger: After you start the audio spectrum monitor by calling startAudioSpectrumMonitor, you are in the state of playing the stream startPlayingStream. Caution: The callback notification period is the parameter value set when the startAudioSpectrumMonitor is called. Related APIs: Start audio spectrum monitoring via startAudioSpectrumMonitor. Monitoring local played audio spectrum by callback onCapturedAudioSpectrumUpdate.

  • audioSpectrums Remote audio spectrum hash map, key is the streamID, value is the audio spectrum list of the corresponding streamID. Spectrum value range is 0-2^30

Implementation

static void Function(Map<String, List<double>> audioSpectrums)?
    onRemoteAudioSpectrumUpdate;