Skip to content

IMA Ads: listen to events #3322

Closed
Closed
@rubenweerts

Description

Issue description

As a developer I want to be able to respond to certain events. The events of these interfaces are hidden when using the Ima-extension: AdErrorListener, AdsLoadedListener, AdEventListener
I'm currently unable to respond to these events:

ALL_ADS_COMPLETED,
FIRST_QUARTILE,
MIDPOINT,
SKIPPED,
TAPPED,
ICON_TAPPED,
THIRD_QUARTILE,
LOADED,
AD_PROGRESS

A solution would be to allow an external listener to receive these events aswel. i.e. ImaAdsLoader.addAdEventListener() and ImaAdsLoader.addAdErrorListener(), ect.
Or make an encapsulating listener that transfers all 3 listeners to external code.

Another quicker solution could be to not make the class final so I can add the functionality myself.

Reproduction steps

None, this is a feature request to open up the SDK

Link to test content

None needed

Version of ExoPlayer being used

r2.5.3

Device(s) and version(s) of Android being used

Any device, but for the sake to name one I'm using the Nexus 6p.

A full bug report captured from the device

See description

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions