google / google/ExoPlayer

IMA: Support manual ad break timing

Open
#9,839 3 comments 0 reactions 1 assignee Claimed by @marcbaechinger View on GitHub
enhancement
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I saw in the following document that I can control the ad break playback timings, but I don't have access to the adsManager in the IMA extension, so I can't control it?
If there is a way to do this, I would like to know about it.
https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/manual_ad_playback

```java
@Override
public void onAdEvent(AdEvent adEvent) {
...
switch (adEvent.getType()) {
// Listen for the AD_BREAK_READY event.
case AD_BREAK_READY:
// Tell the SDK to play ads when you're ready. To skip this ad break,
// simply return from this handler without calling adsManager.start().
adsManager.start();
break;
...
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.