@@ -266,9 +266,15 @@ class LIVEKIT_API DeviceSelector {
266266 // / AVFoundation video-device list; on Linux, it is the V4L2 node number
267267 // / (@c /dev/videoN). Either way the value can shift as devices are attached
268268 // / and removed. Prefer @ref id, which is stable on macOS.
269+ // /
270+ // / @param device_index Platform-defined device index.
271+ // / @return A selector that targets the device at @p device_index.
269272 static DeviceSelector index (std::uint32_t device_index);
270273
271274 // / A platform-stable identifier, as reported by @ref CaptureDeviceInfo::id.
275+ // /
276+ // / @param device_id Platform device identifier.
277+ // / @return A selector that targets the device with @p device_id.
272278 static DeviceSelector id (std::string device_id);
273279
274280private:
@@ -370,9 +376,17 @@ class LIVEKIT_API CaptureSource {
370376 // / for its first output to discover stream settings. Errors (invalid
371377 // / pipeline, missing capture feature, discovery timeout) are thrown from
372378 // / the future as @ref CaptureSourceError.
379+ // /
380+ // / @param config GStreamer pipeline configuration.
381+ // / @return A future that resolves to the created capture source.
382+ // / @throws CaptureSourceError When awaiting the future if creation fails.
373383 static std::future<std::shared_ptr<CaptureSource>> create (GstreamerVideoSourceConfig config);
374384
375385 // / Create the built-in test pattern capture source.
386+ // /
387+ // / @param config Pattern source configuration.
388+ // / @return A future that resolves to the created capture source.
389+ // / @throws CaptureSourceError When awaiting the future if creation fails.
376390 static std::future<std::shared_ptr<CaptureSource>> create (PatternVideoSourceConfig config);
377391
378392 // / Create a capture source from a camera device.
@@ -383,13 +397,20 @@ class LIVEKIT_API CaptureSource {
383397 // / unsatisfiable
384398 // / format request, unsupported platform, missing capture feature) are
385399 // / thrown from the future as @ref CaptureSourceError.
400+ // /
401+ // / @param config Device capture configuration.
402+ // / @return A future that resolves to the created capture source.
403+ // / @throws CaptureSourceError When awaiting the future if creation fails.
386404 static std::future<std::shared_ptr<CaptureSource>> create (DeviceVideoSourceConfig config);
387405
388406 // / List the video capture devices available on this machine.
389407 // /
390408 // / Completes asynchronously: enumeration queries the platform capture stack
391409 // / and may block briefly. Throws @ref CaptureSourceError from the future on
392410 // / failure, including on platforms without a capture backend.
411+ // /
412+ // / @return A future that resolves to the discovered devices.
413+ // / @throws CaptureSourceError When awaiting the future if enumeration fails.
393414 static std::future<std::vector<CaptureDeviceInfo>> listDevices ();
394415
395416 ~CaptureSource ();
0 commit comments