23#include "livekit/visibility.h"
51 explicit
DataTrackFrame(std::vector<std::uint8_t>&& p, std::optional<std::uint64_t> ts = std::nullopt) noexcept
Public API for the LiveKit C++ Client SDK.
Definition audio_frame.h:25
A single frame of data published or received on a data track.
Definition data_track_frame.h:36
std::vector< std::uint8_t > payload
Arbitrary binary payload (the frame contents).
Definition data_track_frame.h:38
static LIVEKIT_API DataTrackFrame fromOwnedInfo(const proto::DataTrackFrame &owned)
This is a private method used by the SDK to create a DataTrackFrame from a proto::DataTrackFrame.
std::optional< std::uint64_t > user_timestamp
Optional application-defined timestamp.
Definition data_track_frame.h:44