In order to play mid-rolls, the SDK needs to track the current position of your video content. For it to do this you'll need to create a class that implementsIMAContentPlayhead. If you're using an AVPlayer, the SDK provides theIMAAVPlayerContentPlayheadclass which does this for you. If you're not using AVPlayer, you'll need to implementIMAContentPlayheadon a class of your own. The below snippet shows how to set up a playhead tracker for an implementation that is using an AVPlayer.
"iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&" +
"output=vast&unviewed_position_start=1&" +
--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.