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

Print new EXT-X-DATERANGE collected in manifest (from reference app) #11

Closed theRealRobG closed 3 years ago

theRealRobG commented 3 years ago

Fixes #3

Description

The change is to integrate (in the reference app) adding an AVPlayerItemMetadataCollector, which sends notifications when new EXT-X-DATERANGE information is collected from the manifest. In order to know that new data has been collected, for now we're just printing to the console, and so an extension was added on AVDateRangeMetadataGroup to create a string representation of it that should represent closely the actual EXT-X-DATERANGE tag.