Reputation: 2663
Is there a way in videojs-ima plugin to play post-roll ad after 2 or more videos? By default, it plays the pre-roll ad before first video and plays the post-roll ad after first video ends. I want to play sequence of videos and want ads to play before and after the sequence. Is this possible?
Upvotes: 1
Views: 749
Reputation: 564
Instead of thinking of it as a preroll and a postroll, think of it as two separate ad requests with a single ad each. Once all your content videos have played, simply send out the second ad request and create a new instance of your IMA AdsManager to delegate ad playback.
Upvotes: 1