Documentation Index
Fetch the complete documentation index at: https://docs.liv.tv/llms.txt
Use this file to discover all available pages before exploring further.
What Problem Does This Solve?
When building apps with video capture, you need to offer users quality options that balance visual fidelity with performance and file size. Different use cases need different settings—recording gameplay for upload needs higher quality than live streaming, and mobile devices have different constraints than desktop.QualityOption lets you define named presets (like “High”, “Medium”, “Low”) where each preset has separate configurations for recording vs. streaming.
When to Use QualityOption
UseQualityOption when:
- You want to give users selectable quality presets (Low/Medium/High)
- Recording and streaming need different settings (recording at higher quality, streaming at lower bitrate)
- You’re building a quality settings menu in your app
- Different platforms need different quality tiers
Quick Example
How It Works
EachQualityOption contains:
- Name — Display label shown to users (“High”, “Medium”, “Low”)
- Recording settings — Resolution, bitrate, framerate for saved videos
- Streaming settings — Usually lower bitrate/framerate for live streaming
- Default flag — Marks which option is selected by default
QualityOption instances and add them to a LckQualityConfig asset.
Common Patterns
Three-tier quality system
Record-only mode (no streaming)
API Reference
Constructor
Parameters
name— Display name shown in UI (“High”, “Medium”, “Low”)isDefault— Settruefor the default selectioncameraTrackDescriptor— Settings for recordingstreamingCameraTrackDescriptor— Settings for live streaming
Fields
| Field | Type | Description |
|---|---|---|
Name | string | Display name of the quality option |
IsDefault | bool | Whether this is the default selection |
RecordingCameraTrackDescriptor | CameraTrackDescriptor | Track settings for recording |
StreamingCameraTrackDescriptor | CameraTrackDescriptor | Track settings for streaming |
Obsolete Members
Related
- CameraTrackDescriptor — Define resolution, bitrate, framerate
- CameraResolutionDescriptor — Specify output resolution
- LckQualityConfig — Asset that contains quality options
- QualityOptionOverride — Device-specific overrides