Bitrate setting is not reflected when application/x-mpegURL is specified for MimeType of advertisement.

92 views
Skip to first unread message

pineapplevine1

unread,
Oct 23, 2022, 9:21:59 PM10/23/22
to Interactive Media Ads SDK
hello.
If application/x-mpegURL is specified for the ad's MimeType in setMimeTypes of AdsRenderingSettings
even if you change the ad's Bitrate with setBitrateKbps the ad's video quality will not change.
If MimeType is application/x-mpegURL What should I do to reflect the Bitrate setting?

Spec:
- Android Studio Chipmunk | 2021.2.1
- Pixel5a Andriod13
- IMA Android SDK Version 3.26.0

Sample app:

Detail info:

If you specify application/x-mpegURL as the ad's MimeType the ad's video quality will not change even if you set the bitrate to 50 or 250.

VideoPlayerController.class after line 139
-----------------------------------------------------------------------------------------------------------
      AdsRenderingSettings adsRenderingSettings =
              ImaSdkFactory.getInstance().createAdsRenderingSettings();
      adsRenderingSettings.setPlayAdsAfterTime(playAdsAfterTime);

      adsRenderingSettings.setMimeTypes(List.of("application/x-mpegURL"));  <- here
//      adsRenderingSettings.setBitrateKbps(50);   <- here
      adsRenderingSettings.setBitrateKbps(250);    <- here

      adsManager.init(adsRenderingSettings);
      seek(playAdsAfterTime);
      videoStarted = true;
-----------------------------------------------------------------------------------------------------------
When the ad's MimeType was set to video/mp4 changing the Bitrate with setBitrateKbps changed the ad's video quality.
 

IMA SDK

unread,
Oct 24, 2022, 4:16:15 AM10/24/22
to pineapp...@gmail.com, ima...@googlegroups.com

Hello,

 

Michael here from IMA SDK support team. Thank you for reaching out to us and for providing a detailed analysis of your concern. I was able to replicate the same behavior using our own advanced sample apps and Android SDK version 3.28.2. With that, allow me to raise this concern to the rest of our team for further insights on the reported and the should be expected behavior. Let me get back to you the soonest I received more information.

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2fnO9C:ref

IMA SDK

unread,
Nov 2, 2022, 10:14:46 AM11/2/22
to pineapp...@gmail.com, ima...@googlegroups.com
Hello,

Thank you for your patience.

The team provided their feedback and mentioned the reported use case here is intended behavior. IMA uses the bitrate information to select the media file URL that matches. The "application/x-mpegURL" type is streamed, so the bitrate will vary depending on the player settings and connection strength. The team mentioned that the don't have control over the actual bitrate seen for this type of media.

Regards,
Google Logo
Teejay Wennie
IMA SDK Team
 


ref:_00D1U1174p._5004Q2fnO9C:ref

Marko Kroflič

unread,
Nov 3, 2022, 7:12:04 AM11/3/22
to Interactive Media Ads SDK
Hi Teejay,

we're having the same issue with streaming ads. Can you explain this:

" , so the bitrate will vary depending on the player settings and connection strength"

Which player settings are you referring to?

What's the common practice then, not to serve streaming ads, but use progressive download with fixed quality?

Thanks.

BR,
Marko Kroflič,
Telekom Slovenije

sreda, 2. november 2022 ob 15:14:46 UTC+1 je oseba imasdk napisala:

Marko Kroflič

unread,
Nov 3, 2022, 7:13:16 AM11/3/22
to Interactive Media Ads SDK
Or should we implement custom ad playback like described here  https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/custom_ad_playback

četrtek, 3. november 2022 ob 12:12:04 UTC+1 je oseba Marko Kroflič napisala:

IMA SDK

unread,
Nov 3, 2022, 3:09:12 PM11/3/22
to marko....@telekom.si, ima...@googlegroups.com
Hi Marko,

The player settings we mentioned refers to video player that you've implemented. In your case, implementing Custom ad playback would be the right path.
Reply all
Reply to author
Forward
0 new messages