What is going on
Asked on 07/31/2024
1 search
It looks like you're interested in understanding what is going on in the context of AVFoundation playback sessions. Here's a detailed explanation based on the provided context:
In the session titled "Discover media performance metrics in AVFoundation", the discussion focuses on diagnosing issues related to media playback stalls. Specifically, it describes a scenario where a stall occurs during media playback. Here's a breakdown of the events:
- Timeline Analysis: The timeline between minutes seven and eight shows a stall event.
- Event Inspection: Before the stall, AVPlayer is fetching media segments.
- HTTP 404 Errors: The video media segment returns an HTTP 404 error, leading to a variant switch from 20 megabits to 15 megabits.
- Buffer Depletion: After the variant switch, the new video media segment again returns an HTTP 404 error, causing AVPlayer to run out of buffer, resulting in the stall.
- NSURLSessionTaskMetrics: By accessing the media segment event, you can reference
NSURLSessionTaskMetrics
to get additional details on why the request failed, such as response headers and other network transaction details.
For more detailed information, you can watch the session Discover media performance metrics in AVFoundation (00:03:12).
Relevant Sessions
- Discover media performance metrics in AVFoundation
- Migrate your app to Swift 6
- What’s new in Xcode 16
- Analyze heap memory
- Run, Break, Inspect: Explore effective debugging in LLDB
- Get started with Writing Tools
If you have any more specific questions or need further details, feel free to ask!

Run, Break, Inspect: Explore effective debugging in LLDB
Learn how to use LLDB to explore and debug codebases. We’ll show you how to make the most of crashlogs and backtraces, and how to supercharge breakpoints with actions and complex stop conditions. We’ll also explore how the “p” command and the latest features in Swift 6 can enhance your debugging experience.

Get started with Writing Tools
Learn how Writing Tools help users proofread, rewrite, and transform text in your app. Get the details on how Writing Tools interact with your app so users can refine what they have written in any text view. Understand how text is retrieved and processed, and how to support Writing Tools in custom text views.

Migrate your app to Swift 6
Experience Swift 6 migration in action as we update an existing sample app. Learn how to migrate incrementally, module by module, and how the compiler helps you identify code that’s at risk of data races. Discover different techniques for ensuring clear isolation boundaries and eliminating concurrent access to shared mutable state.