Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions examples/basic_room.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ def on_reconnecting() -> None:
def on_reconnected() -> None:
logging.info("reconnected")

@room.on("room_updated")
def on_room_updated() -> None:
logging.info(f"room updated, participants: {room.num_participants}")

token = (
api.AccessToken()
.with_identity("python-bot")
Expand All @@ -130,8 +134,8 @@ def on_reconnected() -> None:
.to_jwt()
)
await room.connect(os.getenv("LIVEKIT_URL"), token)
logging.info("connected to room %s", room.name)
logging.info("participants: %s", room.remote_participants)
logging.info(f"connected to room {room.name}, created {room.creation_time}")
logging.info(f"participants: {room.remote_participants}")

await asyncio.sleep(2)
await room.local_participant.publish_data("hello world")
Expand Down
4 changes: 2 additions & 2 deletions livekit-rtc/livekit/rtc/_proto/participant_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

266 changes: 134 additions & 132 deletions livekit-rtc/livekit/rtc/_proto/room_pb2.py

Large diffs are not rendered by default.

Loading
Loading