victorious-analyst-94701
08/14/2023, 9:35 PMnohup livekit-server --dev &
sleep 3
nohup livekit-cli join-room \
--url <ws://localhost:7880> \
--api-key devkey --api-secret secret \
--room room1 --identity bot-host \
--publish-demo &
nohup livekit-cli update-participant \
--url <ws://localhost:7880> \
--api-key devkey --api-secret secret \
--room room1 --identity "bot-host" \
--metadata "YOUR HOST METADATA HERE" &
((i = i + 1))
i=0
while [[ $i -lt 5 ]]; do
nohup livekit-cli join-room \
--url <ws://localhost:7880> \
--api-key devkey --api-secret secret \
--room room1 --identity "bot-user-$i" \
--publish-demo &
((i = i + 1))
done
sleep 1
i=0
while [[ $i -lt 5 ]]; do
nohup livekit-cli update-participant \
--url <ws://localhost:7880> \
--api-key devkey --api-secret secret \
--room room1 --identity "bot-user-$i" \
--metadata "YOUR STANDARD USER METADATA HERE" &
((i = i + 1))
done
livekit-cli create-token \
--api-key devkey --api-secret secret \
--join --room room1 --identity user1 \
--valid-for 24h &
I use this when i'm done to make sure I actually kill the bots (humanely):
ps -ef | grep 'ffmpeg\|livekit' | grep -v grep | awk '{print $2}' | xargs -r kill -9
modern-smartphone-71897
08/15/2023, 4:20 AMnarrow-night-54893
12/03/2023, 4:35 PMenough-zebra-80131
02/08/2024, 8:48 PMancient-cpu-94526
02/09/2024, 5:13 PM