<@U084APK40NS> is there a way to mock participants...
# ask-ai
w
@millions-hair-24956 is there a way to mock participants in order to rapidly iterate on the UI for swift?
g
It seems likely that you can simulate participants for local development and testing using the
simulateParticipants
method in LiveKit's client SDK. However, specific examples or detailed usage instructions for Swift are not provided in the data sources. Additionally, the
lk
CLI tool is mentioned as a way to simulate participants, though it may not be ideal for all use cases (source). Would you like more detailed information on how to use these tools or methods? Sources: - https://livekit-users.slack.com/archives/C07FYCB7FRQ/p1729563448.515919 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
w
@millions-hair-24956 Yes, please provide Swift relevant examples and information
g
My understanding is that while the data sources do not provide a direct Swift example for simulating participants, you can use the
RoomDebugMethods
extension in the LiveKit Flutter SDK to simulate scenarios, which might be adaptable for Swift. This method is primarily for internal testing and includes options like simulating speaker updates or node failures (source). For Swift, you might consider using the
lk
CLI tool to simulate participants, as it can run load tests with simulated publishers and subscribers. This tool is not specific to Swift but can be used in conjunction with your Swift application to test how it handles multiple participants (source). If you need more detailed guidance on adapting these methods for Swift, please let me know! Sources: - https://docs.livekit.io/client-sdk-flutter/livekit_client/RoomDebugMethods.html - https://livekit-users.slack.com/archives/C07FYCB7FRQ/p1729563448.515919 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
l
Not sure if this applies for macOS apps, but atleast for iOS, I run various simulators (different devices). Not exactly mock participants but it works.
w
yeah i was hoping for something i could've used in the Preview mode, without going through the whole room setup