I think it is more our internal process of how things are done on our player plugin. However, it appears the functions mentioned does not seem to work:
- this.ima3.adsManager.skip();
- this.ima3.adsManager.discardAdBreak();
As for the discardAdBreak() - the doc mentions "Discards current ad break and resumes content. If there is no current ad then the next ad break is discarded." - however, when I test with the following ad sample, it completely skips the ad breaks but not play the 2nd pre-roll.
This vmap sample consists of 2 empty vast and then 2 valid vast in the pre-roll ad breaks.
For the .skip() I expect the first ad in the pre-roll break to skip and load the 2nd ad.
For the discardAdBreak(), I would assume this would discard the whole of pre-roll and resumes content based on the information from the doc. However, it also mentioned, "If there is no current ad then the next ad break is discarded." - can you expand on what is expected with the sample I provided?
Note: I have tested this using the Advanced IMA sample and triggering it through the console with:
application.ads_.adsManager_.discardAdBreak()
application.ads_.adsManager_.skip()
Thanks