Avplayer configuration to work on non partial content

Asked on 09/25/2024

1 search

To configure AVPlayer for non-partial content, you can utilize the various metrics and notifications provided by AVFoundation. In iOS 18, Apple has enhanced the metrics available for HLS streaming assets, providing more data points to help diagnose and improve media playback performance.

For instance, you can access client-side metrics via access logs, error logs, and various AVPlayer notifications. These metrics can help you understand issues like media playback taking too long to start or playback stalling. By examining events such as media segment fetches and content key requests, you can gain insights into the playback process and identify areas for improvement.

Additionally, the new AV Metrics API in iOS 18 provides a unified way to gather metrics from various AVFoundation interfaces. This API follows a publisher-subscriber model, allowing you to subscribe to specific events of interest, such as rate changes, seek events, and error events.

For more detailed information on media performance metrics in AVFoundation, you can refer to the session Discover media performance metrics in AVFoundation (01:33).