How to measure start time

Generated on 8/4/2024

1 search

To measure the start time of media playback in AVFoundation, you can use the "likely to keep up" event on the timeline. This event indicates when the AV player has buffered enough to resume playback. By examining this event, you can determine the startup time and identify factors that affected it, such as playlist fetching, media segment fetching, and content key requests.

For more detailed insights, you can refer to the session Discover media performance metrics in AVFoundation (02:11).

Relevant Sessions

  1. Discover media performance metrics in AVFoundation
  2. What’s new in Xcode 16
  3. Enhance ad experiences with HLS interstitials
Render Metal with passthrough in visionOS

Render Metal with passthrough in visionOS

Get ready to extend your Metal experiences for visionOS. Learn best practices for integrating your rendered content with people’s physical environments with passthrough. Find out how to position rendered content to match the physical world, reduce latency with trackable anchor prediction, and more.

Explore Swift performance

Explore Swift performance

Discover how Swift balances abstraction and performance. Learn what elements of performance to consider and how the Swift optimizer affects them. Explore the different features of Swift and how they’re implemented to further understand the tradeoffs available that can impact performance.

Discover media performance metrics in AVFoundation

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.

What’s new in Xcode 16

What’s new in Xcode 16

Discover the latest productivity and performance improvements in Xcode 16. Learn about enhancements to code completion, diagnostics, and Xcode Previews. Find out more about updates in builds and explore improvements in debugging and Instruments.

Enhance ad experiences with HLS interstitials

Enhance ad experiences with HLS interstitials

Explore how HLS Interstitials can help you seamlessly insert advertisements into your HLS content. We’ll also show you how to use integrated timeline to tune your UI experience and build SharePlay for interstitials.