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

Restrict modifications of items in interstitial AVQueuePlayer outside of the framework #1

Open theRealRobG opened 3 years ago

theRealRobG commented 3 years ago

It is currently possible for a client consuming PFInterstitialEventController to alter the interstitial queue via insert(_:after:), remove(_:), removeAllItems(), and replaceCurrentItem(with:) methods on AVQueuePlayer. Doing so will produce undefined behaviour in the framework and likely break functionality. There should be no reason for a client consuming the framework to access these methods directly, and so they should be blocked, either as fatal or otherwise no-op.