Describe the bug
I'm using the LiveKit Flutter SDK audio visualizer feature on Android. Initially, the waveform visualization works fine, but after toggling the microphone off and back on, the waveform stops animating and the following error appears in the logs:
MissingPluginException(No implementation found for method listen on channel io.livekit.audio.visualizer/eventChannel)
This error causes the waveform animation to stop, though the rest of the audio functionality continues working.
To Reproduce
- Run the app on Android device or emulator with LiveKit Flutter SDK (version = 2.4.6).
- Start the audio visualizer (waveform) and verify it works.
- Toggle the microphone off.
- Toggle the microphone back on.
- Observe the MissingPluginException and that the waveform stops updating.
Expected behavior
The audio visualizer's native EventChannel stream should properly restart or continue streaming after toggling the microphone, without throwing MissingPluginException.
Platform information
- Flutter version: 3.29.3
- Plugin version: 2.4.6
- Flutter target OS: Android 35
Thank you!