What’s new in AVFoundation?
Generated on 8/3/2024
1 search
What's New in AVFoundation?
1. Spatial Media Integration
- Recording Spatial Video: AVFoundation now supports recording spatial video, leveraging the new camera setup on the iPhone 15 Pro. This setup places the wide and ultra-wide cameras side by side, enabling spatial video recording. The API for this is now public, allowing any app to record spatial video.
- Detecting and Loading Spatial Media: New APIs allow for detecting if a file is spatial and loading it. This is integrated into existing frameworks like AVFoundation, Photokit, Quicklook, and Webkit.
- Presenting Spatial Media: There are various options for presenting spatial media, including using the preview application API in the Quicklook framework.
For more details, you can refer to the session Build compelling spatial photo and video experiences.
2. Multiview Video Playback in visionOS
- Multiview Architecture: AVFoundation now supports multiview video playback in visionOS, allowing simultaneous video watching with features like spatial audio and 3D video. This is integrated with RealityKit for high-quality rendering.
- AVKit Enhancements: AVKit leverages AVFoundation and RealityKit to create a customizable and intuitive playback experience across platforms.
For more details, you can refer to the session Explore multiview video playback in visionOS.
3. Media Performance Metrics
- New Metrics System: In iOS 18, AVFoundation introduces a new way to gather media performance metrics represented as events. This helps in triaging issues like media playback taking too long to start or stalling.
- Client-Side Metrics: These metrics provide insights into the workings of AVFoundation APIs, making it easier to understand and improve performance.
For more details, you can refer to the session Discover media performance metrics in AVFoundation.
Relevant Sessions
- Build compelling spatial photo and video experiences
- Explore multiview video playback in visionOS
- Discover media performance metrics in AVFoundation
These sessions provide a comprehensive overview of the new features and improvements in AVFoundation.

Explore multiview video playback in visionOS
Learn how AVExperienceController can enable playback of multiple videos on Apple Vision Pro. Review best practices for adoption and explore great use cases, like viewing a sports broadcast from different angles or watching multiple games simultaneously. And discover how to design a compelling and intuitive multiview experience in your app.

Discover media performance metrics in AVFoundation
Discover how you can monitor, analyze, and improve user experience with the new media performance APIs. Explore how to monitor AVPlayer performance for HLS assets using different AVMetricEvents, and learn how to use these metrics to understand and triage player performance issues.

Build compelling spatial photo and video experiences
Learn how to adopt spatial photos and videos in your apps. Explore the different types of stereoscopic media and find out how to capture spatial videos in your iOS app on iPhone 15 Pro. Discover the various ways to detect and present spatial media, including the new QuickLook Preview Application API in visionOS. And take a deep dive into the metadata and stereo concepts that make a photo or video spatial.

Platforms State of the Union
Discover the newest advancements on Apple platforms.