| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This example is split into two executables and demonstrates LiveKit C++ SDK video frame metadata feature:
frame_metadata_producer publishes a synthetic video track named "sensor-camera".
Each video frame attaches additional data via the frame metadata features of the SDK:
| Field | Description |
|---|---|
| user_timestamp_us | Wall-clock capture time (us) |
| frame_id | Monotonic frame counter |
| user_data | Free-form user data, in this example it is used to send a JSON temperature reading correlated with the video frame |
frame_metadata_consumer subscribes to the remote track by name and reads the metadata through setOnVideoFrameEventCallback.
Run them in the same room with different participant identities. LIVEKIT_URL defaults to ws://localhost:7880 when unset:
export LIVEKIT_TOKEN=<producer-token>
./build/frame_metadata/producer/frame_metadata_producer
export LIVEKIT_TOKEN=<consumer-token>
./build/frame_metadata/consumer/frame_metadata_consumerYou can also pass URL and token explicitly:
./build/frame_metadata/producer/frame_metadata_producer ws://localhost:7880 <producer-token>
./build/frame_metadata/consumer/frame_metadata_consumer ws://localhost:7880 <consumer-token>Metadata notes for this example:
{"temperature_c":23.4}| Back | FazBrowse Home | New Git URL |