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
8 changes: 8 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ endif()
if(BUILD_PLUGINS)
add_subdirectory(plugins)
endif()

option(BUILD_TRANSPORT_LIVEKIT_NATIVE "Build the loadable native LiveKit transport" OFF)
if(BUILD_TRANSPORT_LIVEKIT_NATIVE)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
message(FATAL_ERROR "Native transport plugins currently require Linux")
endif()
add_subdirectory(plugins/transport_livekit)
endif()
4 changes: 4 additions & 0 deletions src/plugins/transport_livekit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
find_package(LiveKit 1.13.1 EXACT CONFIG REQUIRED)
add_subdirectory(cpp)
53 changes: 53 additions & 0 deletions src/plugins/transport_livekit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!--
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->

# Native LiveKit transport

An opt-in, dynamically loaded implementation of the [native transport contract](../../core/media_transport/NATIVE.md).
Applications link the transport interface, not LiveKit. Build the provider with
`BUILD_TRANSPORT_LIVEKIT_NATIVE=ON` and the official LiveKit C++ SDK **1.13.1**;
set `LiveKit_DIR` to its `lib/cmake/LiveKit` directory. With the option off, no
LiveKit SDK is needed. Build applications and providers with the same toolchain.

The provider supports pre-encoded H.264 publishing, newest-frame CPU RGBA reception,
and bounded, peer/topic-filtered opaque messages. It uses only public SDK APIs.
The SDK owns network retransmission and decode scheduling; the plugin does not
provide CUDA output, immediate playout control, or clock-qualified timing. Its
receive counters are local slot/inbox statistics, not network packet-loss metrics.

`tools/setup_network.py` creates private host/client credentials and a Docker
Compose test server with verified TLS for an IPv4 LAN/VPN. Run it with `uv run`
to resolve its isolated setup-only dependencies (LiveKit token API and PyYAML).
It does not install a Python media runtime, start services, or configure firewalls.
It requires OpenSSL and refuses existing output directories; transfer only the
client subdirectory. Tokens expire after 24 hours by default, certificates after
seven days. Regeneration requires transferring the new client bundle and restarting
both sites against the matching server. The room is created when a participant
first joins with its generated token.

This is a single-host test deployment. It does not provision public DNS, TURN,
production certificate renewal or an Internet-facing SFU cluster.

## Trust the generated test CA on both sites

Before starting **each** application process, source that site's connection file
and point the SDK at the CA from the same bundle. `SITE_BUNDLE` is the host folder
on the host, or the transferred client folder on the client:

```bash
export SITE_BUNDLE="$HOME/REPLACE_WITH_THIS_SITES_BUNDLE"
source "$SITE_BUNDLE/connection.env"
export SSL_CERT_FILE="$SITE_BUNDLE/ca.crt"
```

The pinned Linux SDK accepts `SSL_CERT_FILE`; the native host/client hardware
checks use this per-process trust path. `connection.env` intentionally contains
no generated absolute CA path because the client bundle moves to another machine.
Sourcing it alone does not establish trust. A successful curl with `--cacert` also
does not configure the SDK process. Do not disable certificate verification or
copy the host's CA private key to the client.

For provider-independent design, see the [network interface](../../core/media_transport/INTERFACE.md)
and [opaque-message interface](../../core/media_transport/messages/INTERFACE.md).
5 changes: 5 additions & 0 deletions src/plugins/transport_livekit/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
find_package(Threads REQUIRED)
add_library(isaac_transport_livekit_native MODULE plugin.cpp)
target_link_libraries(isaac_transport_livekit_native PRIVATE media_transport::native LiveKit::livekit Threads::Threads log_bridge::log_bridge_core)
Loading
Loading