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.
var recordTrack = new CameraTrackDescriptor( new CameraResolutionDescriptor(1920, 1080), 10 << 20, 60);// Use same track for both recording and streamingvar option = new QualityOption("Ultra", true, recordTrack, recordTrack);