Android - AdsRenderingSettings

444 views
Skip to first unread message

fcourt...@turbulent.ca

unread,
Feb 17, 2014, 3:23:54 PM2/17/14
to ima...@googlegroups.com
Hi,

I implemented this SDK on android and ran into an issue with older devices.

The selection of appropriate bitrate & format does not seem to work and cause some devices to load 1080p webm version when a lower resolution mp4 version would be more appropriate.  At a glance it would seem that the last MediaFile URL listed in the VAST response is the one used.

I am trying to limit mime types and bitrate by passing a AdsRenderingSettings object to the AdsManager init call but that appears to be ignored.  Is this a known issue or am I doing something wrong?

@Override
public void onAdsManagerLoaded(AdsManagerLoadedEvent event) {
  String[] mimeType = {"video/mp4"}; 
  adsManager = event.getAdsManager();
  adsManager.addAdErrorListener(this);
  adsManager.addAdEventListener(this);
  
  AdsRenderingSettings settings = ImaSdkFactory.getInstance().createAdsRenderingSettings();
  settings.setMimeTypes(Arrays.asList(mimeType));
  settings.setBitrateKbps(1000);
  adsManager.init(settings);
}


Thank you, 
Felix

Shawn Busolits (IMA SDK Team)

unread,
Feb 18, 2014, 7:23:14 AM2/18/14
to ima...@googlegroups.com
Hey Felix,

I was able to replicate the issue in the sample app. I'll look at this with the rest of the team to determine what's going on.

Thanks,
Shawn Busolits
IMA SDK Team

Sfacs

unread,
Mar 5, 2014, 4:11:16 PM3/5/14
to ima...@googlegroups.com
I got the same problem here. I tried to select specificaly mp4, but it seemed to be ignore, and I still get webm served.
        
                AdsRenderingSettings rendering = sdkFactory.createAdsRenderingSettings();
List<String> mimes = Arrays.asList("video/mp4");
rendering.setMimeTypes(mimes);
rendering.setBitrateKbps(1024);
adsManager = event.getAdsManager();
adsManager.addAdErrorListener(this);
adsManager.addAdEventListener(this);
adsManager.init(rendering);

Shawn Busolits (IMA SDK Team)

unread,
Mar 6, 2014, 12:34:47 PM3/6/14
to ima...@googlegroups.com
Hi,

Thanks for the additional info. We've actually found the cause of the problem and we're working on a fix. We hope to have it included in the next release.

Thanks,
Shawn Busolits
IMA SDK Team

Shawn Busolits (IMA SDK Team)

unread,
Apr 23, 2014, 3:48:26 PM4/23/14
to ima...@googlegroups.com
Hi all,

We've just pushed a new version of the Android SDK that should solve this issue. Download the new jar and let us know if it's still an issue.

Thanks,
Shawn Busolits
IMA SDK Team

Hamady Cisse

unread,
Nov 16, 2015, 2:30:07 PM11/16/15
to Interactive Media Ads SDK
I am using Beta 9 on Android (Beta v9 10/17/2014), it seems like the bugs is still in that version, the AdsRendererSettings are not used. Could you confirm?

Thank you

Hamady Cisse

unread,
Nov 16, 2015, 3:03:29 PM11/16/15
to Interactive Media Ads SDK
It works using your preferred approach


On Monday, February 17, 2014 at 3:23:54 PM UTC-5, fcourt...@turbulent.ca wrote:
Reply all
Reply to author
Forward
0 new messages