Hi,
I would like to elaborate on two cases where our team is facing issue
1. For mid-roll ads, when one ad ends and it's time for the second ad to come, the ad audio starts to play but the video is not visible as the callback to STARTED in onAdStateChanged method is not being received. As the view's visibility handling is done in the STARTED callback. The STARTED call back comes after 2 - 4 seconds of the ad playback.
2. Something similar is being observed when we are trying to pre-roll 2 ads back to back. When one ad ends, the IMA SDK takes 2-4 seconds for providing the STARTED callbacks for the next ad. The ad's audio continues to play but the view is not visible as we have handled the viewing logic in the STARTED callback. After a delay of above a few seconds, the callback to STARTED in onAdStateChanged listener is received and the view becomes visible.
Nothing of this sort is happening on the first ad play. The callbacks are normal and there is no delay between the LOADED and STARTED callbacks but the issue comes becomes prevalent when more than 1 ad play is expected.
It will be great if you can provide some insight onto this.
Regards,
Ankush