Custom UI over the Picture in Picture window for AVPlayerInterstitialEvent items — is there an official way?

I attach an ad in front of the main video using AVPlayerInterstitialEvent, and PiP works across the interstitial→content transition.

I’ve noticed that some apps, while in Picture in Picture, show additional UI that:

  • displays the remaining time of the interstitial item, and
  • lets the user skip the interstitial item and switch to the main video.

As far as I know, the AVPictureInPictureController window is system-drawn and can’t be customized by the developer.

So my questions are:

  1. Is there an official/supported path to present this kind of UI (a remaining-time indicator and a skip control for the interstitial item) over the PiP window?
  2. If so, what is the mechanism — is it a system control that gets forwarded to a delegate, framework-provided interstitial UI, or
  3. When the interstitial is skipped this way, does the framework return to the primary item automatically, or does the app drive it?

I’d really appreciate any insight intodone. Thanks!

Custom UI over the Picture in Picture window for AVPlayerInterstitialEvent items — is there an official way?
 
 
Q