renderingSettings.setEnablePreloading(true);
--
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.
<VAST version="3.0"> <Ad id="123" sequence="6"> <InLine> <AdSystem version="4.11.0-10">LiveRail</AdSystem> <Creatives> <Creative sequence="1" id="331"> <Linear> <Duration>00:00:10</Duration> <MediaFiles> <MediaFile delivery="progressive" bitrate="400" width="320" height="180" type="video/mp4"> <![CDATA[ http://clips.vorwaerts-gmbh.de/VfE_html5.mp4 ]]> </MediaFile>
</MediaFiles> </Linear> </Creative> </Creatives> </InLine> </Ad> <Ad id="123" sequence="5"> <InLine> <AdSystem version="4.11.0-10">LiveRail</AdSystem> <Creatives> <Creative sequence="1" id="331"> <Linear> <Duration>00:00:10</Duration>
<MediaFiles> <MediaFile delivery="progressive" bitrate="400" width="320" height="180" type="video/mp4"> </MediaFile>
</MediaFiles> </Linear> </Creative> </Creatives> </InLine> </Ad></VAST> mAdsLoader.addAdsLoadedListener(new AdsLoader.AdsLoadedListener() { @Override public void onAdsManagerLoaded(AdsManagerLoadedEvent adsManagerLoadedEvent) { // Ads were successfully loaded, so get the AdsManager instance. AdsManager has // events for ad playback and errors. mAdsManager = adsManagerLoadedEvent.getAdsManager(); // Attach event and error event listeners. mAdsManager.addAdEventListener(InitIMA.this); renderingSettings = ImaSdkFactory.getInstance().createAdsRenderingSettings(); renderingSettings.setUiElements(Collections.<UiElement>emptySet()); renderingSettings.setEnablePreloading(true); mAdsManager.init(renderingSettings); } .... initIMA.requestAds(adUrls); Handler andler = new Handler(); andler.postDelayed(new Runnable() { @Override public void run() { mAdsManager.start(); } }, 20000);