|
LiveKit C++ SDK
Real-time audio/video SDK for C++
|
#include <room_event_types.h>
Public Types | |
| enum class | ContentType { None , Text , Byte } |
| enum class | OperationType { Create = 0 , Update = 1 , Delete = 2 , Reaction = 3 } |
Public Attributes | |
| std::string | stream_id |
| std::int64_t | timestamp = 0 |
| std::string | mime_type |
| std::string | topic |
| std::optional< std::uint64_t > | total_length |
| std::map< std::string, std::string > | attributes |
| enum livekit::DataStreamHeaderData::ContentType | content_type = ContentType::None |
| std::optional< OperationType > | operation_type |
| std::optional< int > | version |
| std::optional< std::string > | reply_to_stream_id |
| std::vector< std::string > | attached_stream_ids |
| std::optional< bool > | generated |
| std::optional< std::string > | name |
Header information for an incoming data stream. Represents proto_room.DataStream.Header in a C++-friendly form.
|
strong |
Content type carried by this stream.
|
strong |
Operation type for text streams.
| std::vector<std::string> livekit::DataStreamHeaderData::attached_stream_ids |
IDs of streams attached to this one.
| std::map<std::string, std::string> livekit::DataStreamHeaderData::attributes |
Custom attributes associated with this stream.
| std::optional<bool> livekit::DataStreamHeaderData::generated |
True if this stream was generated (e.g. by AI).
| std::string livekit::DataStreamHeaderData::mime_type |
MIME type of the content (e.g. "application/json").
| std::optional<std::string> livekit::DataStreamHeaderData::name |
Optional filename for byte streams.
| std::optional<OperationType> livekit::DataStreamHeaderData::operation_type |
Optional operation type, for text content.
| std::optional<std::string> livekit::DataStreamHeaderData::reply_to_stream_id |
Optional ID of the stream this one replies to.
| std::string livekit::DataStreamHeaderData::stream_id |
Unique stream identifier.
| std::int64_t livekit::DataStreamHeaderData::timestamp = 0 |
Timestamp (ms since Unix epoch).
| std::string livekit::DataStreamHeaderData::topic |
Application-defined topic name.
| std::optional<std::uint64_t> livekit::DataStreamHeaderData::total_length |
Optional total length in bytes, if known.
| std::optional<int> livekit::DataStreamHeaderData::version |
Optional version number for the text stream.