theRealRobG / PFInterstitials

An attempt to polyfill the functionality of HLS Interstitials to versions of iOS/tvOS before the introduction of AVPlayerInterstitialEventController
0 stars 0 forks source link

CMTime to Date conversion for primary player item #14

Closed theRealRobG closed 2 years ago

theRealRobG commented 2 years ago

Fixes #4

Description

We introduce some date/time mapping structure and a service to decide when to record the mapping (as well as when to clear out mappings that no longer apply). Multiple mappings are stored to account for potential discontinuities in the stream that could lead to changes in the date/time mapping.