With the advancement of streaming media technology and applications on internet, it is apparent that ad-supported streaming media delivery has become a major monetization strategy. By using Tencent Cloud's Stream Service, you can implement dynamic ad insertion based on SCTE-35 ad markers and SSAI. The complete general process of SSAI is as follows:
1. The publisher pushes the live stream to StreamLive for transcoding, packaging, and inserting SCTE-35 ad markers, and then transmits it to StreamPackage. If there are no subsequent processes, step 1) has already completed all server-side steps in CSAI.
2. The player requests the manifest (m3u8/mpd), and StreamPackage fetches the origin manifest while parsing the manifest and checking the SCTE-35 ad markers.
3. StreamPackage send the request to the Ad Decision Server, parses the VAST/VMAP response, and obtains the ad video address.
4. StreamPackage downloads the ad video, transcodes and stores it.
5. StreamPackage updates the transcoded ad segment url in the manifest by inserting and replacing, and then distribute it.
6. After the ad is played on the client-side, StreamPackage reports to the ad Tracking service for tracking the event.
Configuration process
Following the aforementioned process for ad insertion and replacement, users are required to make the following preparations in advance:
1. Prepare the content source.
2. Prepare the ad decision server.
3. Configure StreamPackage.
4. Configure the StreamPackage SSAI service domain name.
5. Insert ad markers.
Prepare the content source
Configure the source server to generate content manifests compatible with StreamPackage SSAI service.
HLS Content Source Requirements
The manifest must be accessible on the public network.
The manifest must be either live or video on demand (VOD).
The manifest must have EXT-X-VERSION 3 or higher.
For live content, the manifest must include ad markers. Video on demand (VOD) can use ad markers or specify advertising time information through VMAP.
Prepare the ad decision server
StreamPackage SSAI service supports VAST and VMAP responses from the Ad Decision Server (ADS). The ADS should return an XML, and this XML should conform to the IAB specifications for the supported VAST and VMAP versions.
Currently, StreamPackage SSAI service supports the following versions of VAST and VMAP:
Was this page helpful?