Resonate icon indicating copy to clipboard operation
Resonate copied to clipboard

LiveKit Controller event handler has an undefined state handler

Open ARYPROGRAMMER opened this issue 7 months ago • 1 comments

🐛 Describe the bug

While running the app

Image

potential fixes would be to comment out

    ..on<RoomConnectionStateChangedEvent>((event) {
      if (event.newState == ConnectionState.disconnected) {
        handleDisconnection();
      }
    })

or use

    ..on<RoomMetadataChangedEvent>((event) {
      if (event.metadata == "disconnected") {
        handleDisconnection();
      }
    })

ARYPROGRAMMER avatar Apr 01 '25 08:04 ARYPROGRAMMER