LiveKit C++ Client SDK v1.1.0
Real-time audio/video/data SDK for C++
Loading...
Searching...
No Matches
livekit::RoomOptions Struct Reference

Top-level room connection options. More...

#include <room.h>

Public Attributes

bool auto_subscribe = true
 If true (default), automatically subscribe to all remote tracks.
 
bool dynacast = false
 Enable dynacast (server sends optimal layers depending on subscribers).
 
bool single_peer_connection = true
 Enable single peer connection mode.
 
std::optional< RtcConfigrtc_config
 Optional WebRTC configuration (ICE policy, servers, etc.)
 
std::optional< E2EEOptionsencryption
 Optional end-to-end encryption settings.
 

Detailed Description

Top-level room connection options.

Member Data Documentation

◆ auto_subscribe

bool livekit::RoomOptions::auto_subscribe = true

If true (default), automatically subscribe to all remote tracks.

This is CRITICAL. Without auto_subscribe, you will never receive:

  • track_subscribed events
  • remote audio/video frames

◆ single_peer_connection

bool livekit::RoomOptions::single_peer_connection = true

Enable single peer connection mode.

When true, uses one RTCPeerConnection for both publishing and subscribing instead of two separate connections. Falls back to dual peer connection if the server doesn't support single PC.


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