Skip to content

Commit

Permalink
feat: rtc stats (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom authored Nov 5, 2023
1 parent 474f4d6 commit 84c03a9
Show file tree
Hide file tree
Showing 10 changed files with 1,735 additions and 56 deletions.
5 changes: 3 additions & 2 deletions livekit-rtc/generate_proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ protoc \
$FFI_PROTOCOL/room.proto \
$FFI_PROTOCOL/track.proto \
$FFI_PROTOCOL/video_frame.proto \
$FFI_PROTOCOL/e2ee.proto
$FFI_PROTOCOL/e2ee.proto \
$FFI_PROTOCOL/stats.proto

touch -a "$FFI_OUT_PYTHON/__init__.py"

for f in "$FFI_OUT_PYTHON"/*.py "$FFI_OUT_PYTHON"/*.pyi; do
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"
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"
done
1 change: 1 addition & 0 deletions livekit-rtc/livekit/rtc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from ._proto.e2ee_pb2 import EncryptionType, EncryptionState
from ._proto.track_pb2 import StreamState, TrackKind, TrackSource
from ._proto.video_frame_pb2 import VideoFormatType, VideoFrameBufferType, VideoRotation
from ._proto import stats_pb2 as stats
from .audio_frame import AudioFrame
from .audio_source import AudioSource
from .audio_stream import AudioStream
Expand Down
32 changes: 16 additions & 16 deletions livekit-rtc/livekit/rtc/_proto/ffi_pb2.py

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

Loading

0 comments on commit 84c03a9

Please sign in to comment.