Live and Linear Ad Resolving and Insertion

The PSDK supports several use cases for live and linear ad resolving and insertion.

The PSDK supports the following live and linear use cases:
  • Pre-roll ad insertion

    PSDK inserts one or more ads at the beginning of the content.

  • Mid-roll ad insertion

    PSDK inserts one or more ads in the middle of the content.

The PSDK resolves the ads and inserts them when a cue point is encountered in the live or linear stream. By default, the PSDK supports the following cues as valid ad markers when resolving and placing ads:
  • #EXT-X-CUEPOINT
  • #EXT-X-AD
  • #EXT-X-CUE
  • #EXT-X-CUE-OUT
These markers require the metadata field's DURATION in seconds and the cue’s unique ID. For example:
#EXT-X-CUE DURATION=27 ID=identiferForThisCue ...

You can define additional cues as described in “Subscribing to custom HLS tags".