question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where to find clear documentation about migration in IMA Extension?

See original GitHub issue

Unfortunately we can’t answer all questions. Unclear questions or questions with insufficient information may not get attention.

Before filing a question:

When filing a question:

Describe your question in detail.

In case your question refers to a problem you are seeing in your app:

  • Output of running $ adb bugreport in the console

In case your question is related to a piece of media:

  • URI to test content
  • For protected content:
    • DRM scheme and license server URL
    • Authentication HTTP headers

Don’t forget to check supported formats and devices (https://exoplayer.dev/supported-formats.html).

If there’s something you don’t want to post publicly, please submit the issue, then email the link/bug report to dev.exoplayer@gmail.com using a subject in the format “Issue #1234”, where #1234 is your issue number (we don’t reply to emails).

v2.13.3 has a lot of changes is there any documentation that explain the migration?

Before this is my code

adsLoader = new ImaAdsLoader(this.context, adsUri); but now this does not work, why removing it?

Another is this

DataSource.Factory getDataSourceFactory() {
        return new DefaultDataSourceFactory(context, getHttpDataSourceFactory());
    }

    private DataSource.Factory getHttpDataSourceFactory() {
        return new DefaultHttpDataSource.Factory().setUserAgent(Util.getUserAgent(context, context.getString(R.string.app_name)));
    }


adsMediaSource = new AdsMediaSource(mediaSourceBuilder.getMediaSource(), mediaSourceBuilder.getDataSourceFactory(), adsLoader, playerView);

Now it requires 6 parameters but where do I get those parameters while DataSource.Factory is no longer included.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewlewiscommented, May 12, 2021

It looks right for passing the ads URI, but you are passing null for the adsId parameter, which is not nullable. The value passed there is used as a key for tracking the ad playback state (so if your release the player due to entering the background then come back to the foreground, you should pass the same adsId so that the old ad playback state before backgrounding is restored, for example). I think you can probably just pass your adsUri for adsId as well, so that resuming playback with the same ads URI restores the old ad playback state.

1reaction
andrewlewiscommented, May 11, 2021

VMAP ad tags can indeed configure multiple ads, and that has been supported since the first version of the IMA extension. I’m not aware of this feature in VAST (I think that always has a single ad and we play it as a preroll), but it is not really the concern of ExoPlayer anyway as we delegate loading/parsing to the IMA SDK.

The new functionality tracked by #3750 lets you play multiple media sources or media items each with their own ad tag, so that is different from what you are describing.

To keep this issue focused, please file a new issue if there are any unrelated follow-up questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Page State & Controller - IMA.js
In every Controller and Extension you can call this.setState(patchObject) method ... This behaviour is described in Controller's load method documentation.
Read more >
Documentation Archive - Apple Developer
Title Resource Type Technology Date Xcode Release Notes Release Notes 2018‑06... Apple File System Guide Guides 2018‑06... Understanding and Detecting OpenGL Functionality Technical Notes OpenGL 2018‑06......
Read more >
Global compact for migration | Refugees and Migrants
Migration provides immense opportunity and benefits – for the migrants, host communities ... and provide the relevant documentation for each of the events....
Read more >
Expatriates Unit | Identity Malta Agency
The Expatriates Unit is involved in the legal migration process and caters for the processing and issuing of residence documentation.
Read more >
Boundless: A Modern Immigration Company
Get the expertise of an immigration lawyer without the price tag. Apply for your green card or U.S. citizenship online with Boundless.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found