AVFoundation updates
Learn about important changes to AVFoundation.
Overview
Browse notable changes in AVFoundation.
June 2024
Assets
Preserve HDR data when generating images with
AVAssetImageGeneratorby setting the value of its dynamicRangePolicy property to match the source video.Export media asynchronously using the export(to:as:isolation:) method of AVAssetExportSession. You can monitor the progress of an export by calling the states(updateInterval:) method and awaiting its results.
Determine whether an AVURLAsset decodes its data using a Media Extension by inspecting its mediaExtensionProperties property.
Camera
Show your camera app on the Lock Screen by adopting the LockedCameraCapture framework.
Capture photos in constant color by configuring a photo output’s isConstantColorEnabled property.
Continue background audio playback while performing audio and video capture by enabling a capture session’s configuresApplicationAudioSessionToMixWithOthers property.
Pause and resume video recording in iOS when using AVCaptureFileOutput.
Support enhanced video stabilization using AVCaptureVideoStabilizationMode.cinematicExtendedEnhanced.
Configure a capture device to automatically adjust its frame rate based on lighting conditions by enabling its isAutoVideoFrameRateEnabled property.
Configure a capture device to replace background content in macOS by enabling its isBackgroundReplacementEnabled property.
Playback
Build playback apps using the latest Swift Concurrency features due to enhanced Sendable adoption throughout the playback APIs.
Capture performance and playback metrics using AVMetrics.
Receive rendered captions for the currently playing media using AVPlayerItemRenderedLegibleOutput.
Simplify handling of interstitial content by using AVPlayerItemIntegratedTimeline.
Send Common Media Client Data (CMCD) as HTTP headers by enabling the new sendsCommonMediaClientDataAsHTTPHeaders property on AVAssetResourceLoader.
See Also
Technology updates
Accelerate updatesAccessibility updatesActivityKit updatesAdAttributionKit UpdatesApp Clips updatesApp Intents updatesAppKit updatesApple Intelligence updatesAppleMapsServerAPI UpdatesApple Pencil updatesARKit updatesAudio Toolbox updatesAuthenticationServices updatesAVFAudio updatesBackground Tasks updates