|
LiveKit C++ SDK
Real-time audio/video SDK for C++
|
#include <data_track_frame.h>
Public Member Functions | |
| DataTrackFrame (const DataTrackFrame &)=default | |
| DataTrackFrame (DataTrackFrame &&) noexcept=default | |
| DataTrackFrame & | operator= (const DataTrackFrame &)=default |
| DataTrackFrame & | operator= (DataTrackFrame &&) noexcept=default |
| DataTrackFrame (std::vector< std::uint8_t > &&p, std::optional< std::uint64_t > ts=std::nullopt) noexcept | |
Static Public Member Functions | |
| static DataTrackFrame | fromOwnedInfo (const proto::DataTrackFrame &owned) |
| This is a private method used by the SDK to create a DataTrackFrame from a proto::DataTrackFrame. | |
Public Attributes | |
| std::vector< std::uint8_t > | payload |
| std::optional< std::uint64_t > | user_timestamp |
A single frame of data published or received on a data track.
Carries an arbitrary binary payload and an optional user-specified timestamp. The unit is application-defined; the SDK examples use microseconds since the Unix epoch (system_clock).
|
static |
This is a private method used by the SDK to create a DataTrackFrame from a proto::DataTrackFrame.
| owned | The proto::DataTrackFrame to create a DataTrackFrame from. |
| std::vector<std::uint8_t> livekit::DataTrackFrame::payload |
Arbitrary binary payload (the frame contents).
| std::optional<std::uint64_t> livekit::DataTrackFrame::user_timestamp |
Optional application-defined timestamp.
The proto field is a bare uint64 with no prescribed unit. By convention the SDK examples use microseconds since the Unix epoch.