Skip to content

Commit 6413736

Browse files
compiling
1 parent 1a1b5ac commit 6413736

7 files changed

Lines changed: 11 additions & 8 deletions

File tree

bridge/include/livekit_bridge/livekit_bridge.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ class LiveKitBridge {
382382
* @return true if the track was unmuted successfully.
383383
*/
384384
bool requestRemoteTrackUnmute(const std::string &destination_identity,
385+
const std::string &track_name);
385386
/**
386387
* Set the callback for data frames from a specific remote participant's
387388
* data track.

bridge/src/bridge_data_track.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "livekit_bridge/bridge_data_track.h"
1818

19-
#include "lk_log.h"
19+
#include "livekit/lk_log.h"
2020

2121
#include "livekit/data_frame.h"
2222
#include "livekit/local_data_track.h"

bridge/src/bridge_room_delegate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "bridge_room_delegate.h"
2121

22-
#include "lk_log.h"
22+
#include "livekit/lk_log.h"
2323

2424
#include "livekit/remote_data_track.h"
2525
#include "livekit/remote_participant.h"

bridge/src/livekit_bridge.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ bool LiveKitBridge::connect(const std::string &url, const std::string &token,
135135

136136
// ---- Phase 3: commit under lock ----
137137
// room_/delegate_/connected_ are now in a consistent state.
138+
livekit::LocalParticipant *lp = nullptr;
138139
{
139140
std::lock_guard<std::mutex> lock(mutex_);
140141
room_ = std::move(room);

bridge/tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ if(BRIDGE_TEST_SOURCES)
8383
${BRIDGE_TEST_SOURCES}
8484
)
8585

86-
target_include_directories(livekit_bridge_tests
86+
target_include_directories(livekit_bridge_unit_tests
8787
PRIVATE
8888
${CMAKE_CURRENT_SOURCE_DIR}/../src
8989
)
9090

91-
target_link_libraries(livekit_bridge_tests
91+
target_link_libraries(livekit_bridge_unit_tests
9292
PRIVATE
9393
livekit_bridge
9494
GTest::gtest_main

bridge/tests/integration/test_bridge_rpc_roundtrip.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ TEST_F(BridgeRpcRoundtripTest, BasicRpcRoundTrip) {
5757
std::cout << "RPC handler registered, performing call..." << std::endl;
5858

5959
std::string test_payload = "hello from bridge";
60-
std::string response =
60+
auto response =
6161
caller.performRpc(receiver_identity, "echo", test_payload, 10.0);
62+
EXPECT_TRUE(response.has_value());
6263

6364
size_t expected_checksum = 0;
6465
for (char c : test_payload) {
@@ -68,10 +69,10 @@ TEST_F(BridgeRpcRoundtripTest, BasicRpcRoundTrip) {
6869
"echo:" + std::to_string(test_payload.size()) + ":" +
6970
std::to_string(expected_checksum);
7071

71-
std::cout << "Response: " << response << std::endl;
72+
std::cout << "Response: " << response.value() << std::endl;
7273
std::cout << "Expected: " << expected_response << std::endl;
7374

74-
EXPECT_EQ(response, expected_response);
75+
EXPECT_EQ(response.value(), expected_response);
7576
EXPECT_EQ(rpc_calls_received.load(), 1);
7677

7778
receiver.unregisterRpcMethod("echo");

src/ffi_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ FfiClient::connectAsync(const std::string &url, const std::string &token,
324324
auto *opts = connect->mutable_options();
325325
opts->set_auto_subscribe(options.auto_subscribe);
326326
opts->set_dynacast(options.dynacast);
327-
opts->set_single_peer_connection(options.single_peer_connection);
327+
// opts->set_single_peer_connection(options.single_peer_connection);
328328

329329
LK_LOG_DEBUG("[FfiClient] connectAsync: auto_subscribe={}, dynacast={}, "
330330
"single_peer_connection={}",

0 commit comments

Comments
 (0)