AWS Elemental MediaTailor
User Guide

Live Content Ad Behavior

In live streams, AWS Elemental MediaTailor always performs ad replacement, preserving the total time between the cue-out and cue-in markers of an ad avail as closely as possible. The cue out can optionally indicate the duration of the ad avail. Every cue-out indicator must have a matching cue-in indicator in the live workflow.

AWS Elemental MediaTailor performs ad replacement for live content for HLS and DASH. For information on how MediaTailor determines cue-out, cue-in, and duration of an ad avail, see HLS Ad Markers and DASH Ad Markers.

Ad Selection and Replacement

AWS Elemental MediaTailor includes ads from the ADS VAST response as follows:

  • If a duration is specified, MediaTailor selects a set of ads that fit into the duration and includes them.

  • If no duration is specified, MediaTailor plays as many ads as it can until it encounters a cue-in indicator.

AWS Elemental MediaTailor adheres to the following guidelines during live ad replacement:

  • MediaTailor tries to play complete ads, without clipping or truncation.

  • Whenever MediaTailor encounters a cue-in indicator, it returns to the underlying content. This can mean truncating an ad that is currently playing.

  • At the end of the duration, MediaTailor returns to the underlying content.

  • If MediaTailor runs out of ads to play for the duration indicated, it plays the slate, if one is configured, or it returns to the underlying content. This happens most commonly when the ads that are available don't completely fill up the duration. This can also happen when the ADS response doesn't provide enough ads to fill the ad avail.

Examples

  • If the ad avail has a duration set to 70 seconds and the ADS response contains two 40-second ads, AWS Elemental MediaTailor plays one of the 40-second ads. In the time left over, it switches to the configured slate or underlying content. At any point during this process, if MediaTailor encounters a cue-in indicator, it cuts immediately to the underlying content.

  • If the ad avail has a duration set to 30 seconds and the shortest ad provided by the ADS response is 40 seconds, MediaTailor plays no ads. If an ad slate is configured, MediaTailor plays that for 30 seconds or until it encounters a cue-in indicator. Otherwise, MediaTailor plays the underlying content.