Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Oct 30, 2023
1 parent bdd5c80 commit 1772683
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion livekit-api/livekit/api/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.1.dev0"
__version__ = "0.1.1"
2 changes: 1 addition & 1 deletion livekit-rtc/livekit/rtc/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.7.dev0"
__version__ = "0.5.0"

0 comments on commit 1772683

Please sign in to comment.