Commit a4223c7
Expose Frame Packet Trailer (FrameMetadata) for video (#286)
* Expose FrameMetadata send/receive for video frames
Surfaces the Rust FFI Frame Packet Trailer feature in the Unity SDK:
attach FrameMetadata (user_timestamp, frame_id) to outgoing frames via
RtcVideoSource.MetadataProvider, and read it off VideoFrame.Metadata on
received frames. PacketTrailerFeatures on TrackPublishOptions is already
proto-passthrough so no wrapper change is needed there.
Adds a PlayMode E2E test that publishes with both packet-trailer features
enabled, attaches known metadata to outgoing frames, and asserts the
subscriber sees matching frame_id and user_timestamp.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Add TrackPublishOptionsExtensions.WithPacketTrailerFeatures
Provides a Google.Protobuf-free entry point for enabling packet trailer
features on TrackPublishOptions. Required because the LiveKit SDK ships
Google.Protobuf.dll as an explicitly-referenced plugin (deliberate, to
avoid conflicts with com.unity.ai.assistant), so a Unity project's
default Assembly-CSharp cannot use the proto's repeated-field collection
initializer or call .Add on PacketTrailerFeatures directly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Use frame metadata in the Meet sample
Publishes the local camera with PTF_USER_TIMESTAMP and PTF_FRAME_ID
packet trailers and attaches a monotonic frame_id plus UnixTimeUs
user_timestamp to each outgoing frame via the new MetadataProvider hook.
Logs received trailer values (throttled to ~1 second per stream) for
both main and extra-video tiles, so the Unity console / on-screen
ScrollingLog shows the metadata round-tripping from remote publishers.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Consolidate StubVideoSource and MetadataTestVideoSource into TestVideoSource
Single test helper with a pushFrames flag covers both modes: signaling-only
publication propagation (default) and continuous media flow for round-trip
tests.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Remove meet sample changes
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent efbd61c commit a4223c7
12 files changed
Lines changed: 226 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
1004 | 1021 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
175 | 181 | | |
176 | 182 | | |
177 | 183 | | |
| 184 | + | |
| 185 | + | |
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Tests/PlayMode/Utils/StubVideoSource.cs.meta renamed to Tests/PlayMode/Utils/CoroutineRunner.cs.meta
Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments