unregisterAudioSpectrumObserver abstract method

void unregisterAudioSpectrumObserver(
  1. AudioSpectrumObserver observer
)

Unregisters the audio spectrum observer.

After calling registerAudioSpectrumObserver, if you want to disable audio spectrum monitoring, you can call this method. You can call this method either before or after joining a channel.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

void unregisterAudioSpectrumObserver(AudioSpectrumObserver observer);