Description

CameraTrackDescriptor encapsulates the key parameters required for configuring a camera track in LCK. It includes: Default values are provided for common use cases:
  • Video bitrate: 5 << 20 (≈ 5 Mbps)
  • Framerate: 30 fps
  • Audio bitrate: 192000 (192 kbps)

Usage

When creating a CameraTrackDescriptor, you must supply a CameraResolutionDescriptor . Other values (bitrate, framerate, audio bitrate) will use defaults unless explicitly set.

Examples

// Using default bitrate, framerate, and audio bitrate
var resolution = new CameraResolutionDescriptor(1920, 1080);
var descriptor = new CameraTrackDescriptor(resolution);

// Custom configuration
var customDescriptor = new CameraTrackDescriptor(
    resolution,
    bitrate: 10 << 20,     // 10 Mbps
    framerate: 60,         // 60 fps
    audioBitrate: 256000   // 256 kbps
);

References

Fields

FieldTypeDescription
ResolutionCameraResolutionDescriptorDefines the video output resolution.
BitrateuintVideo bitrate in bits per second.
FramerateuintVideo framerate in frames per second.
AudioBitrateuintAudio bitrate in bits per second.