Skip to main content

Description

LckDescriptor is a wrapper around the active CameraTrackDescriptor that describes the current capture configuration — resolution, framerate, and bitrate. You get it from ILckService.GetDescriptor() to inspect what settings are being used for recording or streaming.

Usage

Use LckDescriptor when you need to read or display the current capture settings at runtime.
var descriptorResult = _lckService.GetDescriptor();

if (descriptorResult.Success)
{
    var descriptor = descriptorResult.Result;
    Debug.Log($"Active resolution: {descriptor.cameraTrackDescriptor.Resolution.Width}x{descriptor.cameraTrackDescriptor.Resolution.Height}");
    Debug.Log($"Active framerate: {descriptor.cameraTrackDescriptor.Framerate}");
    Debug.Log($"Active bitrate: {descriptor.cameraTrackDescriptor.Bitrate}");
}
else
{
    Debug.LogError($"Failed to retrieve descriptor: {descriptorResult.ErrorMessage}");
}

References

Fields

FieldTypeDescription
cameraTrackDescriptorCameraTrackDescriptorThe active track descriptor used in capture.

See Also