@@ -27,11 +27,15 @@ CMake/vcpkg flows.
2727
2828### Additional capture dependencies
2929
30- Standard SDK builds do not require GStreamer. Capture-enabled builds
31- (` --capture ` ) require GStreamer development libraries at build time and
32- GStreamer libraries at runtime, including when using pattern or clock sources.
33- The SDK does not redistribute these libraries or plugins. Install the runtime
34- plugins required by your GStreamer pipeline too.
30+ GStreamer is required only when the selected sources include ` gstreamer ` .
31+ This includes ` --capture ` / ` --capture=all ` and release ` -capture ` bundles,
32+ which enable all three sources. Standard SDK builds and builds selecting only
33+ ` pattern ` , ` clock ` , or both do not require GStreamer.
34+
35+ For builds that include ` gstreamer ` , install GStreamer development libraries
36+ at build time and GStreamer libraries at runtime. The SDK does not redistribute
37+ these libraries or plugins. Install the runtime plugins required by your
38+ pipeline too. Pattern and clock sources need a compatible GPU adapter at runtime.
3539
3640** macOS:** Install both the official universal runtime and development packages
3741from the [ GStreamer downloads page] ( https://gstreamer.freedesktop.org/download/#macos ) .
@@ -59,7 +63,8 @@ sudo apt install -y pkg-config libunwind-dev \
5963Add the installation's ` bin ` directory to ` PATH ` and its ` lib/pkgconfig `
6064directory to ` PKG_CONFIG_PATH ` .
6165
62- Development files must be discoverable through ` pkg-config ` . You can verify
66+ For GStreamer builds, development files must be discoverable through
67+ ` pkg-config ` . You can verify
6368that they are available with:
6469
6570``` bash
@@ -398,11 +403,13 @@ The SDK places Rust FFI outputs in `client-sdk-rust/target/cpp-<feature-hash>/`.
398403Deep checkout paths can make WebRTC header paths exceed the Windows path limit.
399404Set ` CARGO_TARGET_DIR ` to a short absolute path before building, for example
400405` set CARGO_TARGET_DIR=C:\lk-rust ` in Command Prompt. The SDK appends the
401- feature directory so capture-enabled and disabled outputs remain separate.
406+ feature directory so different source selections have separate outputs .
402407Windows CI uses this setting for builds, tests, and release bundles.
403408` clean-all ` removes the default Rust target directory; remove a custom root
404409separately when it is no longer needed.
405410
411+ <a id =" capture-sources " ></a >
412+
406413## Capture sources
407414
408415Capture is disabled by default. Select sources with ` -DLIVEKIT_CAPTURE=<value> `
@@ -422,15 +429,21 @@ Special values: `none` / `OFF` / empty (disabled), `all` / `ON` (every source).
422429
423430``` bash
424431./build.sh release --capture --bundle --prefix sdk-out/livekit-sdk-capture
432+ ./build.sh release --capture=pattern,clock --bundle --prefix sdk-out/livekit-sdk-pixel
433+ ./build.sh release --capture=gstreamer --bundle --prefix sdk-out/livekit-sdk-gstreamer
425434```
426435
427436On Windows, use ` build.cmd release --capture --bundle --prefix sdk-out\livekit-sdk-capture ` .
428- Custom CMake configurations can set ` LIVEKIT_BUILD_CAPTURE=ON ` . The build
429- enables ` capture-gstreamer ` , ` capture-pattern ` , and ` capture-clock ` in the
430- Rust FFI .
437+ Windows also accepts source lists, for example ` build.cmd release --capture=pattern,clock ` .
438+ Custom CMake configurations use ` LIVEKIT_CAPTURE=all ` or a source list such as
439+ ` LIVEKIT_CAPTURE=pattern,clock ` .
431440
432- The build scripts set ` LIVEKIT_BUILD_CAPTURE ` . The generated numeric
441+ The build scripts set ` LIVEKIT_CAPTURE ` . The generated numeric
433442` LIVEKIT_CAPTURE_ENABLED ` macro (0 or 1) supports ` #if ` checks in consumers.
443+ It indicates whether any source was compiled in; it does not identify which
444+ sources are available. Check ` cargo_features ` in ` share/livekit/build-info.json `
445+ for the selected backends. Creating a source omitted from the SDK build fails
446+ through the returned future with ` CaptureSourceError ` .
434447Direct inclusion of ` livekit/capture_source.h ` fails at compile time in standard
435448SDK builds. ` livekit/livekit.h ` includes capture declarations only when enabled.
436449` share/livekit/build-info.json ` in an installed bundle describes the same build
@@ -445,7 +458,7 @@ See [Additional capture dependencies](#additional-capture-dependencies) before
445458building or running a capture-enabled SDK.
446459
447460Rust artifacts are stored under ` client-sdk-rust/target/cpp-<feature-hash>/ ` ,
448- with separate directories for capture-enabled and disabled builds . Generated
461+ with separate directories for each normalized source selection . Generated
449462` build.h ` files live in each CMake build directory, so feature metadata follows
450463the installed SDK instead of another configuration's most recent build.
451464
0 commit comments