LiveKit C++ SDK
Real-time audio/video SDK for C++
Loading...
Searching...
No Matches
livekit::UserDataPacketEvent Struct Reference

#include <room_event_types.h>

Collaboration diagram for livekit::UserDataPacketEvent:

Public Attributes

std::vector< std::uint8_t > data
 
DataPacketKind kind = DataPacketKind::Reliable
 
RemoteParticipantparticipant = nullptr
 
std::string topic
 

Detailed Description

Fired when a user data packet (non-SIP) is received.

Member Data Documentation

◆ data

std::vector<std::uint8_t> livekit::UserDataPacketEvent::data

Payload data.

◆ kind

DataPacketKind livekit::UserDataPacketEvent::kind = DataPacketKind::Reliable

Delivery kind (reliable or lossy).

◆ participant

RemoteParticipant* livekit::UserDataPacketEvent::participant = nullptr

Remote participant that sent this packet, or nullptr if server (owned by Room).

◆ topic

std::string livekit::UserDataPacketEvent::topic

Optional topic associated with this data (may be empty).


The documentation for this struct was generated from the following file: