|
LiveKit C++ Client SDK v1.1.0
Real-time audio/video/data SDK for C++
|
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< RtcConfig > | rtc_config |
| Optional WebRTC configuration (ICE policy, servers, etc.) | |
| std::optional< E2EEOptions > | encryption |
| Optional end-to-end encryption settings. | |
Top-level room connection options.
| 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| 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.