Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/livekit/room.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ struct RoomOptions {
// Enable dynacast (server sends optimal layers depending on subscribers).
bool dynacast = false;

// 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.
bool single_peer_connection = true;

// Optional WebRTC configuration (ICE policy, servers, etc.)
std::optional<RtcConfig> rtc_config;

Expand Down
1 change: 1 addition & 0 deletions src/ffi_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ FfiClient::connectAsync(const std::string &url, const std::string &token,
auto *opts = connect->mutable_options();
opts->set_auto_subscribe(options.auto_subscribe);
opts->set_dynacast(options.dynacast);
opts->set_single_peer_connection(options.single_peer_connection);
// --- E2EE / encryption (optional) ---
if (options.encryption.has_value()) {
const E2EEOptions &e2ee = *options.encryption;
Expand Down
Loading