AdProgressProvider

public interface AdProgressProvider

Known direct subclasses
BaseManager

Base interface for managing ads.

VideoAdPlayer

Defines the set of methods that a video player must implement to be used by the IMA SDK, as well as a set of callbacks that it must fire.

Known indirect subclasses
AdsManager

An object which handles playing ads after they've been received from the server.

StreamManager

An object which manages dynamic ad insertion streams.


Defines an interface to expose ad progress. It is implemented by AdsManager to provide information to the application (for example, to support tracking UI) as well as by various VideoAdPlayer implementations to enable integration with the IMA subystems.

Summary

Public methods

abstract VideoProgressUpdate

Returns VideoProgressUpdate describing playback progress of the current ad or VideoProgressUpdate#VIDEO_TIME_NOT_READY if video details are not yet available.

Public methods

getAdProgress

abstract VideoProgressUpdate getAdProgress()

Returns VideoProgressUpdate describing playback progress of the current ad or VideoProgressUpdate#VIDEO_TIME_NOT_READY if video details are not yet available. This method should never return null.