Skip to content

Commit 1738a10

Browse files
aoife cassidygithub-actions[bot]davidzhaotheomonnom
authored
bump FFI to 0.12.4 (#333)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: David Zhao <[email protected]> Co-authored-by: Théo Monnom <[email protected]>
1 parent 191648e commit 1738a10

23 files changed

+757
-317
lines changed

.github/workflows/build-rtc.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
- uses: actions/setup-python@v4
3737

3838
- name: Install Protoc
39-
uses: arduino/setup-protoc@v2
39+
uses: arduino/setup-protoc@v3
4040
with:
41-
version: "25.1"
41+
version: "26.x"
4242
repo-token: ${{ secrets.GITHUB_TOKEN }}
4343

4444
- name: Install deps
@@ -55,7 +55,6 @@ jobs:
5555
default_author: github_actions
5656
message: generated protobuf
5757

58-
5958
build_wheels:
6059
name: Build RTC wheels (${{ matrix.archs }})
6160
runs-on: ${{ matrix.os }}

livekit-rtc/generate_proto.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ protoc \
3434
$FFI_PROTOCOL/video_frame.proto \
3535
$FFI_PROTOCOL/e2ee.proto \
3636
$FFI_PROTOCOL/stats.proto \
37+
$FFI_PROTOCOL/track_publication.proto \
3738
$FFI_PROTOCOL/rpc.proto
3839

3940
touch -a "$FFI_OUT_PYTHON/__init__.py"
4041

4142
for f in "$FFI_OUT_PYTHON"/*.py "$FFI_OUT_PYTHON"/*.pyi; do
42-
perl -i -pe 's|^(import (audio_frame_pb2\|ffi_pb2\|handle_pb2\|participant_pb2\|room_pb2\|track_pb2\|video_frame_pb2\|e2ee_pb2\|stats_pb2\|rpc_pb2))|from . $1|g' "$f"
43+
perl -i -pe 's|^(import (audio_frame_pb2\|ffi_pb2\|handle_pb2\|participant_pb2\|room_pb2\|track_pb2\|video_frame_pb2\|e2ee_pb2\|stats_pb2\|rpc_pb2\|track_publication_pb2))|from . $1|g' "$f"
4344
done

livekit-rtc/livekit/rtc/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from ._proto import stats_pb2 as stats
1818
from ._proto.e2ee_pb2 import EncryptionState, EncryptionType
19-
from ._proto.participant_pb2 import ParticipantKind
19+
from ._proto.participant_pb2 import ParticipantKind, DisconnectReason
2020
from ._proto.room_pb2 import (
2121
ConnectionQuality,
2222
ConnectionState,
@@ -98,6 +98,7 @@
9898
"LocalParticipant",
9999
"Participant",
100100
"ParticipantKind",
101+
"DisconnectReason",
101102
"RemoteParticipant",
102103
"ConnectError",
103104
"Room",

livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit-rtc/livekit/rtc/_proto/ffi_pb2.py

Lines changed: 25 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi

Lines changed: 27 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit-rtc/livekit/rtc/_proto/handle_pb2.py

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit-rtc/livekit/rtc/_proto/participant_pb2.py

Lines changed: 14 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi

Lines changed: 70 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)