androidx / androidx/media

Dynamic loading of ads with exo player

Open
#1,693 7 comments 0 reactions 1 assignee View on GitHub

@marcbaechinger is already working on this.

Since Sep 5, 2024.

question
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Hi. I have the following task. A list of time intervals comes from the server when I should show ads. When one of these intervals comes, I need to:

  1. Make a request to the advertising server using the VAST url that I generate in advance
  2. Show this advertisement.
  3. After successful playback/error/skip, I need to repeat the first 2 points (3 times in total)

Is there any tools in the library for this? Or will I have to write my own solution based on IMA?
Please tell me in which direction I should look for a solution.

I have an option to wrap these VAST in a VAMP file where there will be AdTagURI that I have formed in advance. But I need requests for this URI not to be executed immediately. And only when the playback comes closer to the midroll

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.