LiveKit C++ Client SDK v1.12.2
Real-time audio/video/data SDK for C++
Loading...
Searching...
No Matches
livekit::EncodedVideoSource::Frame Struct Reference

One complete pre-encoded video access unit. More...

#include <encoded_video_source.h>

Public Attributes

bool is_keyframe = false
 True if this access unit is independently decodable.
 
std::uint32_t width = 0
 Encoded frame width in pixels.
 
std::uint32_t height = 0
 Encoded frame height in pixels.
 
std::int64_t timestamp_us = 0
 Capture timestamp in microseconds. Set to zero to use the current time.
 
std::vector< std::uint8_t > data
 Complete encoded access-unit payload.
 
std::optional< VideoFrameMetadata > metadata
 Optional packet-trailer metadata.
 

Detailed Description

One complete pre-encoded video access unit.

Member Data Documentation

◆ height

std::uint32_t livekit::EncodedVideoSource::Frame::height = 0

Encoded frame height in pixels.

Set both width and height to zero to use the source resolution.

◆ width

std::uint32_t livekit::EncodedVideoSource::Frame::width = 0

Encoded frame width in pixels.

Set both width and height to zero to use the source resolution.


The documentation for this struct was generated from the following file: