flipkart-incubator / madman-android

Madman (Media ads manager) is a high performance alternative to Google's standard IMA android SDK. If you have your own VAST server and want to render video ads and have full control over the UI, then this library is for you.
https://tech.flipkart.com/madman-an-open-source-ads-framework-for-android-99b5e57fdd30
Apache License 2.0
69 stars 11 forks source link

AdBreak not playing when there is only a post roll ad break in VMAP #10

Closed anirudhramanan closed 4 years ago

anirudhramanan commented 4 years ago

Describe the bug When the VMAP only contains a post roll ad break, the ad is not playing

To Reproduce Steps to reproduce the behavior:

  1. Scrub to the end of the player.
  2. Ad break not playing. Looking at the logs, Madman is triggering the correct events with the AdElement to be played. The MadmanAdLoader for some reason is triggering the onEnded callback even before the ad has ended due to which the library stops the ad.

Expected behavior Post roll ad should be played.