Represents a real-time video source that can accept frames from the application and feed them into the LiveKit core.
More...
#include <video_source.h>
|
| | VideoSource (int width, int height) |
| | Create a new native video source with a fixed resolution.
|
| |
|
| VideoSource (const VideoSource &)=delete |
| |
|
VideoSource & | operator= (const VideoSource &)=delete |
| |
|
| VideoSource (VideoSource &&) noexcept=default |
| |
|
VideoSource & | operator= (VideoSource &&) noexcept=default |
| |
|
int | width () const noexcept |
| | Source resolution as declared at construction.
|
| |
|
int | height () const noexcept |
| |
|
std::uint64_t | ffiHandleId () const noexcept |
| | Underlying FFI handle ID (0 if invalid).
|
| |
| void | captureFrame (const VideoFrame &frame, const VideoCaptureOptions &options) |
| | Push a VideoFrame into the FFI video source.
|
| |
|
void | captureFrame (const VideoFrame &frame, std::int64_t timestamp_us=0, VideoRotation rotation=VideoRotation::VIDEO_ROTATION_0) |
| | Backward-compatible convenience overload for timestamp + rotation only.
|
| |
Represents a real-time video source that can accept frames from the application and feed them into the LiveKit core.
◆ VideoSource()
| livekit::VideoSource::VideoSource |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Create a new native video source with a fixed resolution.
- Parameters
-
| width | Width in pixels. |
| height | Height in pixels. |
- Exceptions
-
| std::runtime_error | if the FFI call fails or the response does not contain the expected new_video_source field. |
◆ captureFrame()
Push a VideoFrame into the FFI video source.
- Parameters
-
| frame | Video frame to send. |
| options | Timestamp, rotation, and optional metadata for this frame. |
The documentation for this class was generated from the following file: