Ad-insertion phase

The PSDK inserts the alternate content (ads) into the timeline corresponding to the main content.

When the ad-resolving phase is complete, the PSDK is in possession of an ordered list of ad resources grouped into ad breaks. Each ad break is positioned on the main content timeline using a start-time value expressed in milliseconds (ms). Each ad inside an ad break has a duration property also expressed in ms. The ads inside an ad break are chained together one after another. As a result, the duration of an ad break is equal to the summation of the durations of the individual composing ads.

Failover can occur in this phase with conflicts that might arise on the timeline during ad insertion. For specific combi- nations of ad break start-time/duration values, it could be possible for ad segments to overlap. This happens when the last portion of an ad break intersects the beginning of the first ad in the next ad break. In these situations, the PSDK discards the later ad break. The PSDK continues the ad-insertion process with the next item on the list until all ad breaks are either inserted or discarded.

The PSDK issues a warning notification about the error and continues processing.