google / google/ExoPlayer

Is there a way to clear ads for AdPlaybackState?

Open
#10,717 1 comment 0 reactions 1 assignee Claimed by @marcbaechinger View on GitHub
question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Here is the case, I planned some ads as below.
```
adPlaybackState = adPlaybackState.withNewAdGroup(0, 120_000_000)
adPlaybackState = adPlaybackState.withAdCount(0, 2)
adPlaybackState = adPlaybackState.withAdUri(0, 0, uri1)
adPlaybackState = adPlaybackState.withAdUri(0, 1, uri2)
```
After the ads play through, if user seek backward, I wanna clear the old data and re-plan new ads at the same point.

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.