AWS for M&E Blog
Monetizing encrypted live stream with AWS Elemental MediaTailor
Configuring AWS Elemental MediaTailor to enable ad insertion for an encrypted HLS live stream is no different than for a live stream in the clear. Behind the scenes, MediaTailor ensures that the protected content stays encrypted by preserving the appropriate HLS key tags (EXT-X-KEY). Meanwhile, it leaves the ads unencrypted by setting the same HLS key tags set to none. The video stream, therefore, seamlessly transitions from encrypted content to unencrypted ads, then back to encrypted content during playback.
To see this in action, follow the short link below to our GitHub site where we provide step-by-step instructions on how to monetize an encrypted HLS live stream, as well as integrate MediaTailor with Amazon CloudFront:
This module relies on the completion of the following previous modules:
- Launch and deploy the Live Streaming Solution CloudFormation template – Sets up MediaLive and MediaPackage and CloudFront. Make sure to start your MediaLive channel once the template has been fully deployed.
- Launch and deploy the SPEKE reference server CloudFormation template, then follow the instructions on encrypting your MediaPackage HLS channel.
You will also need an Ad decision server (ADS). For these instructions, we provide a previously deployed simple, serverless mock ADS.
GitHub link:
http://bit.ly/mediatailor-module
Make sure to complete the prerequisites provided in the same link first (and above), before actually walking through the tutorial.