diff --git a/README.md b/README.md index 51c880ca..1d4612d7 100644 --- a/README.md +++ b/README.md @@ -16,22 +16,22 @@ Official LiveKit documentation: https://docs.livekit.io/ ## Installation +Rtc Client ```shell $ pip install livekit ``` +Api +```shell +$ pip install livekit-rtc +``` + ## Connecting to a room ```python async def main(): room = livekit.Room() - # participants and tracks that are already available in the room - # participant_connected and track_published events will *not* be emitted for them - for participant in room.participants.items(): - for publication in participant.tracks.items(): - print("track publication: %s", publication.sid) - @room.on("participant_connected") def on_participant_connected(participant: livekit.RemoteParticipant): logging.info( @@ -54,6 +54,12 @@ async def main(): # all published tracks in the room await room.connect(URL, TOKEN) logging.info("connected to room %s", room.name) + + # participants and tracks that are already available in the room + # participant_connected and track_published events will *not* be emitted for them + for participant in room.participants.items(): + for publication in participant.tracks.items(): + print("track publication: %s", publication.sid) ``` ## Examples diff --git a/livekit-api/livekit/api/version.py b/livekit-api/livekit/api/version.py index 1acd9021..485f44ac 100644 --- a/livekit-api/livekit/api/version.py +++ b/livekit-api/livekit/api/version.py @@ -1 +1 @@ -__version__ = "0.1.1.dev0" +__version__ = "0.1.1" diff --git a/livekit-rtc/livekit/rtc/version.py b/livekit-rtc/livekit/rtc/version.py index c672a18b..3d187266 100644 --- a/livekit-rtc/livekit/rtc/version.py +++ b/livekit-rtc/livekit/rtc/version.py @@ -1 +1 @@ -__version__ = "0.4.7.dev0" +__version__ = "0.5.0"