AFCImaAdsLoader
AdsLoader using the IMA SDK. All methods must be called on the main thread.
The player instance that will play the loaded ads must be set before playback using setPlayer. If the ads loader is no longer required, it must be released by calling release.
See IMA's Support and compatibility page for information on compatible ad tag formats. Pass the ad tag URI when setting media item playback properties (if using the media item API) or as a when constructing the AdsMediaSource (if using media sources directly). For the latter case, please note that this implementation delegates loading of the data spec to the IMA SDK, so range and headers specifications will be ignored in ad tag URIs. Literal ads responses can be encoded as data scheme data specs, for example, by constructing the data spec using a URI generated via getDataUriForString.
The IMA SDK can report obstructions to the ad view for accurate viewability measurement. This means that any overlay views that obstruct the ad overlay but are essential for playback need to be registered via the AdViewProvider passed to the AdsMediaSource. See the IMA SDK Open Measurement documentation for more information.
Types
Functions
null if ads have not been requested yet.null if ads have not been requested yet.