AdsManager

interface AdsManager

Manages some aspects of ad playback.

Inheritors

Functions

Link copied to clipboard
open fun discardAdBreak()

If an ad break is currently playing, discards it and resumes content, otherwise ignores the next scheduled ad break.

Link copied to clipboard
open fun getCuePoints(): List<Long>

Returns a collection of offsets, in milliseconds, indicating when a scheduled ad break will play. A pre-roll is represented by 0, and a post-roll is represented by -1. An empty array indicates that the ad or ad pod has no schedule and can be played at any time.

Link copied to clipboard
open fun setCuePoints(cuePoints: List<Long>)

Provides cue points information.

Link copied to clipboard
open fun skipAd()

Skips the current ad (if skippable), else is a no-op