AdItem
Represents an ad break which can be scheduled for playback.
One single AdItem can have multiple AdSources where all but the first act as fallback ad sources if the first one fails to load. The start and end of an ad break are signaled via PlayerEvent.AdBreakStarted and PlayerEvent.AdBreakFinished.
If the ad view group is removed or set the first time (e.g. by passing null
to Player.setAdViewGroup or by moving the hosting app to the background) after an IMA AdSource has been loaded, the according AdItem is discarded. The same holds true if the ad view group is removed or set during ad playback. This doesn't affect progressive AdSources.
Properties
When enabled, the player itself downloads the initial ad tag. For ads with AdSourceType.Ima, this means that the provided ad tag is not fetched by IMA. If the downloaded ad tag is a VMAP, the VMAP structure is processed by Bitmovin Advertising and any resulting VAST responses and wrapper are handled according to the configured AdSourceType. This property only has effect on ads with AdSourceType.Ima.
The amount of seconds the ad manifest is loaded in advance compared to when the ad break is scheduled for playback.
The amount of seconds of the main video content that should be replaced by this ad break.