Skip to content

Commit e26df0b

Browse files
amalgamate
1 parent 75517b3 commit e26df0b

3 files changed

Lines changed: 35 additions & 41 deletions

File tree

‎docs/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Additional documentation for the SDK.
55
- [Building](building.md) — prerequisites, build scripts, CMake presets,
66
vcpkg, integration into your CMake project, troubleshooting.
77
- [Capture sources](capture-sources.md) — pattern, clock, and GStreamer sources;
8-
build features, release bundles, and publishing.
8+
build features, release bundles, and publishing. Use capture to stream video through LiveKit
9+
without maintaining your own video pipeline.
910
- [Authentication](authentication.md) — generating tokens, token source types
1011
(initial connect only), and in-session token refresh.
1112
- [Logging](logging.md) — compile-time vs runtime filtering, log levels,

‎docs/building.md‎

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ cmake --build build
201201
| `LIVEKIT_USE_SYSTEM_PROTOBUF` | OFF | Use system Protobuf instead of vcpkg's |
202202
| `LIVEKIT_LOG_LEVEL` | `TRACE` | Compile-time log threshold (see [logging.md](logging.md)) |
203203
| `LIVEKIT_VERSION` | repo-derived | SDK version string baked into the binary |
204+
| `LIVEKIT_BUILD_CAPTURE` | preset-dependent | Enable GStreamer, pattern, and clock capture sources in the Rust FFI |
204205

205206
## Build output
206207

@@ -361,22 +362,42 @@ separately when it is no longer needed.
361362

362363
## Capture sources
363364

364-
Standard `debug`, `release`, and `*-examples` builds disable capture. The
365-
`*-tests` and `*-all` presets enable it by default. Both build scripts accept
366-
`--capture` and `--no-capture` to override the preset:
365+
Only the repository's `*-tests` and `*-all` presets enable capture by default.
366+
The `debug`, `release`, and `*-examples` presets disable it. Use `--capture`
367+
with any build command to enable all three sources (GStreamer, GPU pattern, and
368+
GPU wall clock), or `--no-capture` to disable them explicitly:
367369

368370
```bash
369371
./build.sh release --capture --bundle --prefix sdk-out/livekit-sdk-capture
372+
./build.sh debug-tests --no-capture
370373
```
371374

372-
The build scripts set `LIVEKIT_BUILD_CAPTURE`. The generated
373-
`LIVEKIT_CAPTURE_ENABLED` macro is 0 or 1 and supports `#if` checks in consumers.
374-
375375
On Windows, use `build.cmd release --capture --bundle --prefix sdk-out\livekit-sdk-capture`.
376-
Capture builds enable GStreamer, GPU test patterns, and the GPU wall clock.
377-
They require GStreamer development libraries at build time and its runtime
378-
libraries when the SDK is loaded. Release artifacts with `-capture` in their
379-
names include capture; standard artifacts disable it.
376+
Custom CMake configurations can set `LIVEKIT_BUILD_CAPTURE=ON`. The build
377+
enables `capture-gstreamer`, `capture-pattern`, and `capture-clock` in the
378+
Rust FFI.
379+
380+
The build scripts set `LIVEKIT_BUILD_CAPTURE`. The generated numeric
381+
`LIVEKIT_CAPTURE_ENABLED` macro (0 or 1) supports `#if` checks in consumers.
382+
`share/livekit/build-info.json` in an installed bundle describes the same build
383+
features; neither value tests whether a GPU or a requested GStreamer plugin is
384+
available at runtime.
385+
386+
Release downloads with `-capture` in their names include these features, for
387+
example `livekit-sdk-macos-arm64-capture-<version>.tar.gz`. Standard release
388+
bundles have capture disabled.
389+
390+
Building a capture-enabled SDK requires GStreamer development libraries
391+
accessible to `pkg-config`. On macOS, install `gstreamer` with Homebrew. On
392+
Ubuntu, install `libgstreamer1.0-dev` and
393+
`libgstreamer-plugins-base1.0-dev`, plus the runtime plugins your pipeline
394+
uses. On Windows, install the MSVC runtime and development packages from the
395+
[GStreamer downloads page](https://gstreamer.freedesktop.org/download/) and put
396+
the installation's `bin` directory on `PATH` and `lib/pkgconfig` directory on
397+
`PKG_CONFIG_PATH`.
398+
399+
Capture bundles require GStreamer at runtime, including when using pattern or
400+
clock sources. The SDK does not redistribute GStreamer libraries or plugins.
380401

381402
CI builds both variants in one job per platform. It first builds and bundles
382403
the standard SDK, then runs the build script with `--capture` in the same CMake

‎docs/capture-sources.md‎

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,8 @@ Native camera device capture and device enumeration are not part of this API.
1414

1515
## Build and release bundles
1616

17-
Only the repository's `*-tests` and `*-all` presets enable capture by default.
18-
The `debug`, `release`, and `*-examples` presets disable it. Use `--capture`
19-
with any build command to enable all three sources, or `--no-capture` to disable
20-
them explicitly:
21-
22-
```bash
23-
./build.sh release --capture --bundle --prefix sdk-out/livekit-sdk-capture
24-
./build.sh debug-tests --no-capture
25-
```
26-
27-
On Windows, use `build.cmd release --capture --bundle --prefix sdk-out\livekit-sdk-capture`.
28-
Custom CMake configurations can set `LIVEKIT_BUILD_CAPTURE=ON`. The build enables
29-
`capture-gstreamer`, `capture-pattern`, and `capture-clock` in the Rust FFI.
30-
31-
Release downloads with `-capture` in their names include these features, for
32-
example `livekit-sdk-macos-arm64-capture-<version>.tar.gz`. Standard release
33-
bundles have capture disabled. The generated numeric `LIVEKIT_CAPTURE_ENABLED` macro (0 or 1)
34-
and `share/livekit/build-info.json` describe the selected bundle's build features;
35-
they do not test whether a GPU or a requested GStreamer plugin is available.
36-
37-
Building a capture SDK requires GStreamer development libraries accessible to
38-
`pkg-config`. On macOS, install `gstreamer` with Homebrew. On Ubuntu, install
39-
`libgstreamer1.0-dev` and `libgstreamer-plugins-base1.0-dev`, plus the runtime
40-
plugins your pipeline uses. On Windows, install the MSVC runtime and development
41-
packages from the [GStreamer downloads page](https://gstreamer.freedesktop.org/download/)
42-
and put the installation's `bin` directory on `PATH` and `lib/pkgconfig` directory
43-
on `PKG_CONFIG_PATH`.
44-
45-
Capture bundles require GStreamer at runtime, including when using pattern or
46-
clock sources. The SDK does not redistribute GStreamer libraries or plugins.
17+
For build flags, release bundle naming, GStreamer prerequisites, and runtime
18+
requirements, see [Building — Capture sources](building.md#capture-sources).
4719

4820
## Create and publish a source
4921

0 commit comments

Comments
 (0)