AOSSIE-Org / AOSSIE-Org/Resonate

Mic does not turn on in room; throws LiveKitException: publisher is closed

Open
#676 5 comments 1 reaction 1 assignee Claimed by @4555jan View on GitHub
bug
Dominant language
Dart
Stars
344
Forks
350
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Describe the bug

There is an issue where the microphone does not turn on inside a room.

As shown in the attached video, toggling the mic has no effect and eventually throws a runtime exception. The mic remains disabled and gives following error and in the video as well shows certain errors

https://github.com/user-attachments/assets/9347a218-b8d4-4ce9-ad5b-f63c8452586b

**Error Logs**

`` [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: LiveKit Exception: [UnexpectedConnectionState] publisher is closed
E/flutter ( 6046): #0 EngineInternalMethods.createTransceiverRTCRtpSender (package:livekit_client/src/core/engine.dart:1255:7)
engine.dart:1255
E/flutter ( 6046): #1 LocalParticipant.publishAudioTrack.negotiate (package:livekit_client/src/participant/local.dart:127:45)
local.dart:127
E/flutter ( 6046): #2 LocalParticipant.publishAudioTrack (package:livekit_client/src/participant/local.dart:134:87)
local.dart:134
E/flutter ( 6046): #3 LocalParticipant.setSourceEnabled (package:livekit_client/src/participant/local.dart:701:22)
local.dart:701
E/flutter ( 6046):
E/flutter ( 6046): #4 SingleRoomController.turnOnMic (package:resonate/controllers/single_room_controller.dart:263:5)
single_room_controller.dart:263
E/flutter ( 6046):
E/flutter ( 6046): ``

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.