logo

MediaTailor

MediaTailor is a service that provides scalable ad insertion and channel assembly. It is able to serve targeted ad content to viewers and create linear streams while maintaining broadcast quality in over-the-top (OTT) video applications. It supports HLS and DASH for both VOD and live workflows.

At the moment of writing only linear ads are supported, but it is possible to expand it to non-linear and companion ads as well.

Configuration

There are three requirements to use a MediaTailor stream with THEOplayer:

  • Have a THEOplayer build with the mediatailor feature flag set.
  • The src is set to the session initialization url.
  • The integration parameter is set with the value mediatailor.

If everything is set up correctly, THEOplayer will play the stream and send the necessary tracking beacons.

Web SDK
const player = new THEOplayer.Player(element, {
    libraryLocation: '...',
    ...
});

player.source = {
    sources: [
        {
            src: '<mediatailorURL>/v1/session/<hashed-account-id>/<origin-id>/<asset-id>',
            integration: 'mediatailor'
        }
    ]
}

Limitations

The scope of the MediaTailor integration for now is limited to sending the tracking beacons. This encapsulates only the events that can be sent with the default implementation of THEOplayer. For example skipping an ad is not yet supported so the events that correspond to skipping an ad will never occur.

At the moment there is a limitation to HLS where the tracking beacons are sometimes sent with small offsets. We are aware of this issue and will be fixing this in the future. DASH does work as expected.

Seeking is only disabled during an ad, no logic is in place for playing an ad if the user seeked past it.

github
Make sure to follow us on GitHub!
THEO-logo-white
twitter
facebook
linkedin
Copyright © 2022. All Rights Reserved.
Leuven
New York
Singapore
Barcelona