melodic-zoo-29246
08/28/2025, 6:58 PMtall-airline-16756
08/28/2025, 6:58 PMtall-airline-16756
08/28/2025, 6:59 PMCameraCaptureOptions class. Here’s a quick way to update your code:
func setCamera(enabled: Bool) async throws {
let captureOptions = CameraCaptureOptions(position: .back)
try await room.localParticipant.setCamera(
enabled: enabled,
captureOptions: captureOptions
)
}
This will make sure the back camera is the one that starts up for your video session. If you run into any issues or have more questions, just let me know—I’m here to help!
Sources: multicam/multicam/ContentView.swift | Sources/LiveKit/Types/Options/RoomOptions.swift