SSAI Overview โ
Server-Side Ad Insertion. This method attaches ads to the main content stream on the server side, so that from the player's perspective the ads and the main content look like one continuous stream.
Request Example โ
In client-side ad insertion (CSAI), the player pauses the main content, separately fetches and plays the ad video, and returns to the main content when it finishes. The player moves back and forth between two streams.
With SSAI, the player sees only one stream. When it reaches an ad break, the server swaps the segments of that period with ad segments and sends them.
Key Features โ
| Item | CSAI | SSAI |
|---|---|---|
| Ad blocking (ad blocker) | Effective | Not effective |
| Interruption between ads and main content | Yes | โ |
| Player requirements | Ad SDK required | โ |
| Measurement accuracy | Client-dependent | Server-based |
| Implementation difficulty | Low | High |
Because the ads and the main content are delivered in the same stream, the player handles them as a single playback flow.
Signal Flow โ
Components โ
| Element | Role |
|---|---|
| SCTE-35 marker | Signals the start and length of the ad break |
| PDT | Records absolute time in segments to align exactly with the marker |
| ADS | Decides which ads to insert. VAST response |
| Slate Ad | Default video that fills the gap when no ad is filled |
| Threshold | How many seconds at most to wait when no ad is filled |
Where SSAI Is Attached in Tencent Cloud โ
SSAI is enabled per StreamPackage endpoint. It is the endpoint, not the channel. So you can serve the SSAI version and the regular version from the same channel at the same time.
Prerequisites โ
- An encoder or injection system that can insert SCTE-35 markers
- An ADS that responds with VAST
- MP4 for the slate ad
- StreamPackage endpoint
- CSS playback domain