Skip to content

Commit 000a8d2

Browse files
chenghao-mouclaudegithub-actions[bot]
authored
bump FFI to v0.12.67 (#730)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6893e13 commit 000a8d2

11 files changed

Lines changed: 92 additions & 82 deletions

File tree

examples/local_video/publisher.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ def _open_camera(args: argparse.Namespace) -> tuple[cv2.VideoCapture, int, int]:
108108
return capture, width, height
109109

110110

111-
def _packet_trailer_features(args: argparse.Namespace) -> list[int]:
111+
def _frame_metadata_features(args: argparse.Namespace) -> list[int]:
112112
features = []
113113
if args.attach_timestamp:
114-
features.append(rtc.PacketTrailerFeature.PTF_USER_TIMESTAMP)
114+
features.append(rtc.FrameMetadataFeature.FMF_USER_TIMESTAMP)
115115
if args.attach_frame_id:
116-
features.append(rtc.PacketTrailerFeature.PTF_FRAME_ID)
116+
features.append(rtc.FrameMetadataFeature.FMF_FRAME_ID)
117117
return features
118118

119119

@@ -224,13 +224,13 @@ async def run(args: argparse.Namespace, stop_event: asyncio.Event) -> None:
224224
max_framerate=args.fps,
225225
max_bitrate=3_000_000,
226226
),
227-
packet_trailer_features=_packet_trailer_features(args),
227+
frame_metadata_features=_frame_metadata_features(args),
228228
)
229229
publication = await room.local_participant.publish_track(track, options)
230230
logging.info(
231-
"published camera track %s with packet trailer features %s",
231+
"published camera track %s with frame metadata features %s",
232232
publication.sid,
233-
list(publication.packet_trailer_features),
233+
list(publication.frame_metadata_features),
234234
)
235235

236236
await _capture_loop(args, capture, source, width, height, stop_event)

examples/local_video/subscriber.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _feature_names(features: list[int]) -> str:
176176
names = []
177177
for feature in features:
178178
try:
179-
names.append(rtc.PacketTrailerFeature.Name(feature))
179+
names.append(rtc.FrameMetadataFeature.Name(feature))
180180
except ValueError:
181181
names.append(str(feature))
182182
return ", ".join(names) or "none"
@@ -309,10 +309,10 @@ def on_track_unpublished(
309309
active_publication_sid = subscribed.publication.sid
310310
active_track_gone = asyncio.Event()
311311
logging.info(
312-
"subscribed to %s from %s with packet trailer features: %s",
312+
"subscribed to %s from %s with frame metadata features: %s",
313313
subscribed.publication.sid,
314314
subscribed.participant.identity,
315-
_feature_names(list(subscribed.publication.packet_trailer_features)),
315+
_feature_names(list(subscribed.publication.frame_metadata_features)),
316316
)
317317

318318
video_stream = rtc.VideoStream.from_track(

livekit-rtc/livekit/rtc/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
VideoEncoding,
3838
)
3939
from ._proto.track_pb2 import (
40-
PacketTrailerFeature,
40+
FrameMetadataFeature,
4141
StreamState,
4242
TrackKind,
4343
TrackSource,
@@ -148,7 +148,7 @@
148148
"StreamState",
149149
"TrackKind",
150150
"TrackSource",
151-
"PacketTrailerFeature",
151+
"FrameMetadataFeature",
152152
"ParticipantTrackPermission",
153153
"VideoBufferType",
154154
"VideoRotation",

livekit-rtc/livekit/rtc/_proto/room_pb2.py

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

livekit-rtc/livekit/rtc/_proto/room_pb2.pyi

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

livekit-rtc/livekit/rtc/_proto/track_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.

0 commit comments

Comments
 (0)