Hi,
In our video player for Android we allow developers to load another video while IMA is playing advertisements. When a developer does that, we want to destroy the current AdsManager, and everything related to it, so that IMA SDK does not send out events anymore that try to control our video player.
According to the documentation
AdsManager.destroy() does exactly what we want, however I noticed that after a call to destroy() and nulling out the AdsManager we still receive events from the SDK when the new video is already loaded into our player:
- pauseAd() is called on our VideoAdPlayer object.
- IMA fires the CONTENT_RESUME_REQUESTED event.
- IMA fires the ALL_ADS_COMPLETED event.
Since IMA is still sending out these events I'm assuming that we are not destroying/resetting the IMA SDK properly.
Is there a proper way to do this? Are we doing something wrong here?
Thanks,
Rik