Skip to content
Closed
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
9 changes: 5 additions & 4 deletions include/livekit/room.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +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;
// By default, single peer connection mode is false to match the SFU default.
// When true, uses one RTCPeerConnection or 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 = false;

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