-
Display ads and interstitials in SharePlay
Find out how you can deliver a coordinated playback experience in SharePlay when your app delivers different ad schedules to each participant. We'll explore how to build playback experiences with stitched-in ads and scheduled HLS interstitials, and share tips and best practices.
Ressources
Vidéos connexes
WWDC22
-
Rechercher dans cette vidéo…
-
-
5:13 - Specific sample accurate time ranges that represent ads or interstitials
class MyAVPlayerCoordinatorDelegate : NSObject, AVPlayerPlaybackCoordinatorDelegate { func playbackCoordinator(_ coordinator: AVPlayerPlaybackCoordinator, interstitialTimeRangesFor playerItem: AVPlayerItem) -> [NSValue] { return interstitialTimeRanges } }
-