what's new in avfoundation

Generated on 8/8/2024

2 searches

What's New in AVFoundation

Spatial Media Integration

AVFoundation has introduced new APIs to support spatial media, allowing developers to record and play back spatial videos. This includes:

  • Recording Spatial Videos: The iPhone 15 Pro's camera setup enables spatial video recording, and the API for this is now public. You can use AVFoundation to record spatial videos by configuring the AV capture device, selecting a supported video format, and enabling spatial video recording on the output. (Build compelling spatial photo and video experiences)
  • Detecting and Loading Spatial Media: New methods to detect if a file is spatial and load it using AVFoundation, Photokit, and Quicklook. (Build compelling spatial photo and video experiences)

Multiview Video Playback

AVFoundation now supports multiview video playback, particularly useful for visionOS. This feature allows users to watch multiple video streams simultaneously, enhancing the viewing experience with customizable options. (Explore multiview video playback in visionOS)

Media Performance Metrics

In iOS 18, AVFoundation introduces a new way to gather media performance metrics represented as events. This helps in triaging issues like playback delays and stalling by providing client-side metrics. (Discover media performance metrics in AVFoundation)

Relevant Sessions

  1. Build compelling spatial photo and video experiences
  2. Explore multiview video playback in visionOS
  3. Discover media performance metrics in AVFoundation

For a deeper dive into these topics, you can refer to the specific sessions mentioned above.