Type Property

inputPriority

Specifies that the capture session does not control audio and video output settings.

Declaration

static let inputPriority: AVCaptureSession.Preset

Discussion

To enable capture settings not supported by any session presets (such as high frame rate), change the value of the activeFormat property on the appropriate capture device. When you change the device’s format, the session preset automatically changes to this value, indicating that the AVCaptureSession object has relinquished responsibility for configuring its inputs and outputs. (Instead, the capture device’s active format dictates the quality of service level provided at the outputs.) To return to automatic configuration, use the session’s sessionPreset property to choose another preset.

See Also

Presets

static let cif352x288: AVCaptureSession.Preset

Specifies capture settings suitable for CIF quality (352 x 288 pixel) video output.

static let hd1280x720: AVCaptureSession.Preset

Specifies capture settings suitable for 720p quality (1280 x 720 pixel) video output.

static let hd1920x1080: AVCaptureSession.Preset

Specifies capture settings suitable for 1080p quality (1920 x1080 pixel) video output.

static let hd4K3840x2160: AVCaptureSession.Preset

Specifies capture settings suitable for 2160p (also called UHD or 4K) quality (3840 x 2160 pixel) video output.

static let high: AVCaptureSession.Preset

Specifies capture settings suitable for high-quality video and audio output.

static let iFrame1280x720: AVCaptureSession.Preset

Specifies capture settings to achieve 1280 x 720 quality iFrame H.264 video at about 40 Mbits/sec with AAC audio.

static let iFrame960x540: AVCaptureSession.Preset

Specifies capture settings to achieve 960 x 540 quality iFrame H.264 video at about 30 Mbits/sec with AAC audio.

static let low: AVCaptureSession.Preset

Specifies capture settings suitable for output video and audio bit rates suitable for sharing over 3G.

static let medium: AVCaptureSession.Preset

Specifies capture settings suitable for output video and audio bit rates suitable for sharing over WiFi.

static let photo: AVCaptureSession.Preset

Specifies capture settings suitable for high-resolution photo quality output.

static let qHD960x540: AVCaptureSession.Preset

Specifies capture settings suitable for quarter HD quality (960 x 540 pixel) video output.

static let qvga320x240: AVCaptureSession.Preset

Specifies capture settings suitable for 320 x 240 pixel video output.

static let vga640x480: AVCaptureSession.Preset

Specifies capture settings suitable for VGA quality (640 x 480 pixel) video output.