Skip to content

Commit f9e3fbc

Browse files
committed
Enable mic w/o preconnect
1 parent a787606 commit f9e3fbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/LiveKit/Agent/Session.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ open class Session: ObservableObject {
255255
try await connect()
256256
}
257257
} else {
258+
agent.connecting(buffering: false)
258259
try await connect()
260+
try await room.localParticipant.setMicrophone(enabled: true)
259261
}
260262
} catch {
261263
self.error = .failedToConnect(error)

0 commit comments

Comments
 (0)