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
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ option(BUILD_PLUGIN_CAMERA_OAK "Build the OAK camera plugin of the camera interf
option(BUILD_PLUGIN_REMOTE_DEVICE_BRIDGE "Build the remote device bridge wire codec library (Teleop::remote_plugin_session)" ON)
option(BUILD_PLUGIN_POSE_PROVIDER "Build the Pose Provider plugin, engine interface and stub adapter" OFF)
option(BUILD_EXAMPLES "Build examples" ON)
option(BUILD_EXAMPLE_MEDIA_BRIDGE "Build native media bridge examples" OFF)
option(BUILD_EXAMPLE_TELEOP_ROS2 "Build only the teleop_ros2 ROS 2 reference integration (e.g. for Docker)" OFF)
option(BUILD_TESTING "Build unit tests" ON)
option(BUILD_OVXR_CAMERA_QUADS "Build optional application-owned OVXR camera quad support" OFF)
Expand Down Expand Up @@ -173,7 +174,7 @@ add_subdirectory(deps/cloudxr/openxr_extensions)
add_subdirectory(src)

# Build examples if requested (examples/CMakeLists.txt honours both options).
if(BUILD_EXAMPLES OR BUILD_EXAMPLE_TELEOP_ROS2)
if(BUILD_EXAMPLES OR BUILD_EXAMPLE_TELEOP_ROS2 OR BUILD_EXAMPLE_MEDIA_BRIDGE)
add_subdirectory(examples)
endif()

Expand Down
8 changes: 7 additions & 1 deletion deps/third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,13 @@ set(SPDLOG_INSTALL OFF CACHE BOOL "Skip spdlog install target" FORCE)
# Set in both directions, because FORCE writes the cache: setting it only in the
# ON branch left an earlier -DBUILD_PLUGIN_OAK_CAMERA=ON standing in a build
# directory reconfigured with the option off.
if(BUILD_PLUGIN_OAK_CAMERA)
# The optional CameraReader backend must still configure without its SDK installed.
# Probe fmt quietly here; DepthAI's own package resolves required dependencies later.
if(BUILD_PLUGIN_CAMERA_OAK AND NOT BUILD_PLUGIN_OAK_CAMERA)
find_package(fmt CONFIG QUIET)
endif()
if(BUILD_PLUGIN_OAK_CAMERA OR (BUILD_PLUGIN_CAMERA_OAK AND fmt_FOUND))
# Both OAK plugins must share the fmt ABI used by DepthAI.
# Explicit, though spdlog would find_package(fmt) on its own: a missing fmt
# should fail here, naming this as the reason, not inside spdlog's build.
find_package(fmt CONFIG REQUIRED)
Expand Down
4 changes: 4 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ elseif(BUILD_EXAMPLE_TELEOP_ROS2)
# Only the ROS 2 reference integration (e.g. for Docker).
add_subdirectory(teleop_ros2)
endif()

if(BUILD_EXAMPLE_MEDIA_BRIDGE)
add_subdirectory(media_bridge)
endif()
45 changes: 45 additions & 0 deletions examples/media_bridge/AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!--
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->

# Media Bridge

- Hardware test instructions must specify both computers' processes, fresh-terminal
exports, and a matched bundle/token flow. Do not require users to invent room
credentials or infer receiver/viewer commands from a sender-only smoke test.

- Use the C++ CameraReader for discovery and frame acquisition; camera SDKs belong
in camera plugins. Do not add GStreamer to this example.
- Keep the stock LiveKit baseline free of private SDK patches. Treat compressed
reception, playout controls, and timing extensions as separate capability decisions.
- Preserve comparison builds outside the clean native review stack. Do not claim
latency equivalence from successful frame delivery alone.

- Make the stock native test the primary documentation entry point. Label patched
reference paths explicitly and record the actual receiver and SDK used in trials.

- Keep prepared-machine commands in one canonical guide. When changing clients,
update every linked entry point and copy the corrected docs to the client;
historical hardware-validation notes must not supply active launch commands.

- Describe camera and client support through the required CameraReader format and
local encoder backend. Label device-specific commands as examples, not as the
scope of the transport; distinguish future modalities from implemented APIs.

- Camera plugin build examples require BUILD_PLUGINS=ON; a backend-specific flag
does not enter src/plugins when the parent gate is disabled.

- Provider-facing interface documentation should show the current C++ declarations
and implementation obligations; replace obsolete prototype APIs rather than
presenting diagrams or old registration code as the plugin contract.

- When replacing a heading-adjacent document range with code, clear inherited
paragraph page breaks and verify an exported render; text readback alone
cannot catch one-code-line-per-page layout.

- Use a persistent checkout path in operator instructions; keep clone destinations
and every fresh-terminal IC_DIR export consistent when changing that path.

- Use explicit placeholders for site login usernames in public setup examples,
not a developer's account name; explain what readers must substitute.
19 changes: 19 additions & 0 deletions examples/media_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
message(FATAL_ERROR "The media_bridge prototype requires Linux")
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm64")
add_subdirectory(jetson_mmapi)
add_subdirectory(sender)
set(_receiver_default OFF)
else()
set(_receiver_default ON)
endif()
option(BUILD_MEDIA_BRIDGE_RECEIVER "Build stock SDK receiver and SDL window" ${_receiver_default})
if(BUILD_MEDIA_BRIDGE_RECEIVER)
add_subdirectory(receiver)
endif()

add_subdirectory(messages)
Loading
Loading