Skip to content

Audio Visualizer EventChannel throws MissingPluginException after microphone toggle on Android #800

@Ebaa-Lau22

Description

@Ebaa-Lau22

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

  1. Run the app on Android device or emulator with LiveKit Flutter SDK (version = 2.4.6).
  2. Start the audio visualizer (waveform) and verify it works.
  3. Toggle the microphone off.
  4. Toggle the microphone back on.
  5. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions