Skip to content

Conversation

@CFKevinRef
Copy link
Contributor

@CFKevinRef CFKevinRef commented Sep 11, 2025

AVPlayerItem.currentDate() can block the calling thread, presumably to wait for downloading and parsing of a playlist since it's based on EXT-X-PROGRAM-DATE-TIME. Initial rendition info gathering is particularly likely to hit this case.

  • This is reusing some code that inferred the date at which an AVMetricEvent occurred. It's been moved to its own method inferProgramDate(at mediaTime: CMTime).
  • The functionality to get event timing as of right now on an AVPlayerItem has been moved from an initializer of PlaybackEventTiming into an async extension method AVPlayerItem.currentTiming()

Resolves [NAT-268]

@CFKevinRef CFKevinRef requested a review from a team as a code owner September 11, 2025 22:59
@snyk-io
Copy link

snyk-io bot commented Sep 11, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@CFKevinRef CFKevinRef merged commit 04d50a2 into master Sep 17, 2025
11 checks passed
@CFKevinRef CFKevinRef deleted the kc/async-event-timing branch September 17, 2025 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants