AdBreak

constructor(adTag: String, roll: AdBreak.Roll)

Creates a pre-roll or a post-roll ad break that consists of a single ad.

Parameters

adTag

Ad tag URL.

roll

Definition as pre-roll or post-roll.


constructor(adTags: ArrayList<String>, offset: Long)

Creates an ad break that starts playing at the specified offset.

Parameters

adTags

List of ad tag URLs.

offset

Offset (in seconds) when the ad break should start.