AFCPlaybackSessionManager

class AFCPlaybackSessionManager(player: AdComposedPlayer, val configuration: AdFrequencyControlConfiguration = AdFrequencyControlConfiguration())

Creates and owns the AFC trackers for one playback session:

The global AFC counter is preserved across playbacks — detaching one playback never resets it.

Parameters

player

the ad-composed player for this playback. It supplies com.quickplay.vstb7.player.ad.AdComposedPlayer.playerContext, which the content tracker needs to exclude ad and promo time, and owns the ad listener list this integration registers on.

configuration

the AFC policy; applied to the process-global AdFrequencyControl on initialization.

Constructors

Link copied to clipboard
constructor(player: AdComposedPlayer, configuration: AdFrequencyControlConfiguration = AdFrequencyControlConfiguration())

Properties

Link copied to clipboard

The AdEventListener registered on player for measuring ad break exposure.

Functions

Link copied to clipboard
fun detach()

Stops tracking and unregisters listeners from player. The global counter is preserved so the next playback continues where this one left off.

Link copied to clipboard

Synchronously evaluates if the upcoming ad break should play or be skipped.