Skip to content

Commit 84c03a9

Browse files
authored
feat: rtc stats (#86)
1 parent 474f4d6 commit 84c03a9

File tree

10 files changed

+1735
-56
lines changed

10 files changed

+1735
-56
lines changed

livekit-rtc/generate_proto.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ protoc \
3131
$FFI_PROTOCOL/room.proto \
3232
$FFI_PROTOCOL/track.proto \
3333
$FFI_PROTOCOL/video_frame.proto \
34-
$FFI_PROTOCOL/e2ee.proto
34+
$FFI_PROTOCOL/e2ee.proto \
35+
$FFI_PROTOCOL/stats.proto
3536

3637
touch -a "$FFI_OUT_PYTHON/__init__.py"
3738

3839
for f in "$FFI_OUT_PYTHON"/*.py "$FFI_OUT_PYTHON"/*.pyi; do
39-
perl -i -pe 's|^(import (audio_frame_pb2\|ffi_pb2\|handle_pb2\|participant_pb2\|room_pb2\|track_pb2\|video_frame_pb2\|e2ee_pb2))|from . $1|g' "$f"
40+
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))|from . $1|g' "$f"
4041
done

livekit-rtc/livekit/rtc/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from ._proto.e2ee_pb2 import EncryptionType, EncryptionState
2929
from ._proto.track_pb2 import StreamState, TrackKind, TrackSource
3030
from ._proto.video_frame_pb2 import VideoFormatType, VideoFrameBufferType, VideoRotation
31+
from ._proto import stats_pb2 as stats
3132
from .audio_frame import AudioFrame
3233
from .audio_source import AudioSource
3334
from .audio_stream import AudioStream

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

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

0 commit comments

Comments
 (0)