Skip to content

Commit 8c6e83c

Browse files
authored
fix hardcoded camera source in async LocalParticipant.set(source:enabled:) (#180)
1 parent 755fd86 commit 8c6e83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/LiveKit/Participant/LocalParticipant+Async.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public extension LocalParticipant {
2323
func set(source: Track.Source, enabled: Bool) async throws -> LocalTrackPublication? {
2424

2525
try await withCheckedThrowingContinuation { continuation in
26-
set(source: .camera, enabled: enabled).then(on: queue) { result in
26+
set(source: source, enabled: enabled).then(on: queue) { result in
2727
continuation.resume(returning: result)
2828
}.catch(on: queue) { error in
2929
continuation.resume(throwing: error)

0 commit comments

Comments
 (0)