iOS and Android Preloading the Video Ad and Caching

1,447 views
Skip to first unread message

aw...@nextfaze.com

unread,
Jan 8, 2014, 8:20:51 PM1/8/14
to ima...@googlegroups.com
We are dealing with a lot of repetitive and large video ads, in iOS and Android. 
Is there a way we can preload the entire video ad before playing it? 
Also is there a way we can cache the video ad so that it doesn't have to re-download the video next time the ad is to be played?

I haven't seen anything in the SDK to allow this, have I missed something? Or would the solution be to intercept the XML download the content and replace the video url with a locally stored URL? 
Another option I suppose would be to use an open source VAST SDK and modify (if necessary) to do the caching and preloading.

Thanks

Shawn Busolits (IMA SDK Team)

unread,
Jan 9, 2014, 2:29:35 PM1/9/14
to ima...@googlegroups.com
Hi there,

Unfortunately this is not supported by the SDK today. I'll talk with the rest of the team to see if this is a feature we would consider adding.

Thanks,
Shawn Busolits
IMA SDK Team

Diogo Balseiro

unread,
Mar 27, 2015, 2:42:39 PM3/27/15
to ima...@googlegroups.com
Hi

Is there anything new regarding this? 

I'm occasionally seeing some delay in the loading of preroll videos and it would be great to only show a preroll once we know it's going to play immediately. It doesn't necessarily need to have the entire video available, just the first few seconds so the user can see something.

Cheers

Shawn Busolits (IMA SDK Team)

unread,
Mar 27, 2015, 3:11:58 PM3/27/15
to ima...@googlegroups.com
Hi Diogo,

We don't have any news yet. As soon as we do I'll post here.

Thanks,
Shawn Busolits
IMA SDK Team

Mathan Raj

unread,
Jul 6, 2017, 6:11:00 AM7/6/17
to Interactive Media Ads SDK
Hi Shawn,

Any update on pre-caching the video in Android?

Chris Feldman (IMA SDK Team)

unread,
Jul 6, 2017, 2:46:50 PM7/6/17
to Interactive Media Ads SDK
Hi Mathan,

The IMA SDK now offers preloading via the setEnablePreloading() method of the AdsRenderingSettings object. Do note that it's unlikely that the entire creative will be loaded in advance. For more information, we have a preloading FAQ section in our docs.

Regards,
Chris Feldman
IMA SDK Team

mathan raj

unread,
Jul 7, 2017, 3:45:10 AM7/7/17
to ima...@googlegroups.com
Hi Chris,

I am trying to load ads in IMA SDK. I am getting the following error after starting the video.

[ERROR] onAdError received VAST media file loading reached a timeout of 8 seconds.

SDK - 3.4.0
Platform - Android

I have also attached relevant IMA SDK logs.

What could be the reason I am getting this error?


--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/cSIHtgrU78U/unsubscribe.
To unsubscribe from this group and all its topics, 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.



--
Thanks,
Mathan raj
adloaded.txt

Chris Feldman (IMA SDK Team)

unread,
Jul 7, 2017, 11:06:09 AM7/7/17
to Interactive Media Ads SDK
Hi Mathan,

The error that you're getting means that media file is taking too long to load and reaching a timeout. There are a number of things that could cause a timeout. The following is from the DFP documentation regarding VAST error codes:


This can be caused when the loadVideoTimeout setting in the IMA SDK is set unreasonably low. The default is 8 seconds.

This can be caused by low bandwidth, or poor website implementation with competing requests that delay loading of the media file.

This can occur when a video auto-plays in a mobile environment, since it should be click-to-play (there are some exceptions).

For players that use the HTML5 IMA SDK, video fallback may be helpful to avoid losing impressions.


In most cases, the issue is network related. I suggest updating to the latest version of the SDK - 3.7.4, and checking that you have a strong network connection.

If you continue to have issues, please open a new thread on the forum. Keeping things separate makes it easier to find things when searching through threads.

Regards,
Chris Feldman
IMA SDK Team

Galih Samudra

unread,
Oct 4, 2017, 12:16:39 AM10/4/17
to Interactive Media Ads SDK
Hi Chris,

I see that the IMA SDK is now has setEnablePreloading() for Android, but does it have any similiar feature for cache video in IOS SDK? Right now i am in SDK 3.6 in IOS SDK, thanks.

Regards,
Galih Samudra

Chris Feldman (IMA SDK Team)

unread,
Oct 4, 2017, 10:43:16 AM10/4/17
to Interactive Media Ads SDK
Hi Galih,

Thank you for reaching out support. Due to limitations with the iOS platform, the iOS SDK does not currently support preloading media.

Please let me know if there's anything else you need.

Regards,
Chris Feldman
IMA SDK Team

sanjay rathor

unread,
Mar 19, 2018, 9:02:42 AM3/19/18
to Interactive Media Ads SDK
Hi,

Is there any way where i can pre fetch the ads data ? Is there any work around this ?

ARAVIND KUMAR

unread,
Mar 19, 2018, 9:50:14 AM3/19/18
to Interactive Media Ads SDK
I am also looking this way, if any solution please share with us.

Chris Feldman (IMA SDK Team)

unread,
Mar 19, 2018, 11:03:10 AM3/19/18
to Interactive Media Ads SDK
Hi Sanjay,

This IMA SDK for iOS is not able to support asset preloading (link). We do not have a workaround at this time.

Regards,
Chris Feldman
IMA SDK Team

sanjay rathor

unread,
Mar 19, 2018, 12:24:01 PM3/19/18
to Interactive Media Ads SDK
Thanks . Can we load the ads and play at particular time ? 

Chris Feldman (IMA SDK Team)

unread,
Mar 19, 2018, 3:36:37 PM3/19/18
to Interactive Media Ads SDK
Hi Sanjay,

It is possible to make an ad request immediately and wait to play the ads until a later time. The LOADED event will fire when the ad is ready to play, but playback won't begin until you start your AdsManager. You can wait as long as you'd like before starting your ad. For VMAP tags, you can also take a look at manual ad break playback

Regards,
Chris Feldman
IMA SDK Team

Message has been deleted

sanjay...@timesinternet.in

unread,
Jun 25, 2018, 5:15:49 AM6/25/18
to Interactive Media Ads SDK
Hi ,
There is issue with ads loading  . If i am creating the add request like this without passing the player instance  then the ad view frames starts with animation  from the top left corner . You can easily see it in standard sample app also . 
Please let me know how i can prevent the animation 

IMAAdsRequest *request = [[IMAAdsRequest alloc] initWithAdTagUrl:adTagUrl adDisplayContainer:[self createAdDisplayContainer] contentPlayhead:nil userContext:nil];

sanjay...@timesinternet.in

unread,
Jun 25, 2018, 5:41:53 AM6/25/18
to Interactive Media Ads SDK
Hi ,
There is issue with ads loading  . If i am creating the add request like this without passing the player instance  then the ad view frames starts with animation  from the top left corner . You can easily see it in standard sample app also . 
Please let me know how i can prevent the animation 

IMAAdsRequest *request = [[IMAAdsRequest alloc] initWithAdTagUrl:adTagUrl adDisplayContainer:[self createAdDisplayContainer] contentPlayhead:nil userContext:nil];



imaads.mov

sanjay...@timesinternet.in

unread,
Jun 25, 2018, 5:42:20 AM6/25/18
to Interactive Media Ads SDK
Hi ,
There is issue with ads loading  . If i am creating the add request like this without passing the player instance  then the ad view frames starts with animation  from the top left corner . You can easily see it in standard sample app also . 
Please let me know how i can prevent the animation 

IMAAdsRequest *request = [[IMAAdsRequest alloc] initWithAdTagUrl:adTagUrl adDisplayContainer:[self createAdDisplayContainer] contentPlayhead:nil userContext:nil];



imaads.mov

Lijith Vipin

unread,
Jul 1, 2019, 7:02:28 AM7/1/19
to Interactive Media Ads SDK
Hi

Is there anything new regarding this? Is there a way to pre-fetch ima ads in iOS?

Thanks
Lijith Vipin

On Thursday, January 9, 2014 at 6:50:51 AM UTC+5:30, aw...@nextfaze.com wrote:

IMA SDK

unread,
Jul 1, 2019, 1:52:27 PM7/1/19
to lijith...@rapidvaluesolutions.com, ima...@googlegroups.com
Hi,

As per the IMA SDK  support and compatibility documentation, Asset Preloading is not yet supported on iOS (see screenshot attached).

Regards,
Arnaud Casame
IMA SDK Team

ref:_00D1U1174p._5001UCaNLu:ref
IMA_SDK_Support_Compatibility.png
Reply all
Reply to author
Forward
0 new messages