Picture in Picture stops between ads

339 views
Skip to first unread message

Marc Desharnais

unread,
Mar 29, 2018, 2:21:14 PM3/29/18
to Interactive Media Ads SDK
Hi,

I've been testing picture-in-picture with the Advanced iOS Sample app.

I run the projects and I find that in some cases the picture in picture stops between ads.
I test with the same adTagUrl: AdRules Pods
where
static NSString *const kAdRulesPodsTag = @"https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&"
@"iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&"
@"output=vast&unviewed_position_start=1&"
@"cust_params=deployment%3Ddevsite%26sample_ar%3Dpremidpostpod&cmsid=496&vid=short_onecue&"
@"correlator=";

If I use the mp4 url: @"http://rmcdn.2mdn.net/Demo/html5/output.mp4";

It's fine, the behaviour is what I expect.

But if I use the bipbop url: http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8

The picture in picture stops after each ad.


Steps to reproduce:

2 - In the code, change the video url value of entry "AdRules Pods" from "kDFPContentPath" to "kBipBopContentPath"
3 - Compile and launch the app on a decent iPad supporting picture in picture
4 - Select AdRules Pods
5 - Tap the screen when the prerolls are playing, then select PiP
6 - Notice that after a ad, the picture in picture exits and the video continues fullscreen

Expected behaviour:
- I expect the picture and picture carries on between ads even when playing m3u8, like it does for mp4 format.


ima-sdk-adv...@google.com

unread,
Mar 29, 2018, 3:43:56 PM3/29/18
to ima...@googlegroups.com
Hi,

Thank you for reaching out to support. I just tested this scenario on my own device and could not reproduce the issue. Are you on the latest version of the SDK (link)? Can you also share your device/iOS version? I'd like to recreate your setup as exactly as possible.

Regards,
Chris Feldman
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
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.

Marc Desharnais

unread,
Mar 29, 2018, 4:22:17 PM3/29/18
to Interactive Media Ads SDK
Hi,

Thank you for testing!

Looks like I made a mistake in my repro steps. I used the Objective-c Advanced sample.
https://github.com/googleads/googleads-ima-ios/tree/master/Objective-C/AdvancedExample

In fact the sample app looks slightly different in Swift compared to Objective-C.
I might look into the Swift code to try to figure out why the behaviour is different but a bit of insight might be useful.

ima-sdk-adv...@google.com

unread,
Mar 30, 2018, 3:01:46 PM3/30/18
to ima...@googlegroups.com
Hi,

I'm still not able to reproduce the issue. I'm running the Advanced Example with the latest version of the SDK on an iPad Air 2 (iOS 11.2). Can you please share your device details?

Regards,
Chris Feldman
IMA SDK Team 

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Marc Desharnais

unread,
Apr 3, 2018, 9:17:59 AM4/3/18
to ima...@googlegroups.com
Hi Chris,

I'm still able to reproduce the issue on a iPad Pro iOS 10.3.2.
I tested on a older iPad Air that updated to iOS 11.0. No problem there.

Cheers!




--
Marc Desharnais, Ing

Société Radio-Canada
Développeur iOS
Musique et Services Numériques
Bureau 809A Montréal 

2018-03-30 15:01 GMT-04:00 ima-sdk-advisor+support via Interactive Media Ads SDK <ima...@googlegroups.com>:
Hi,

I'm still not able to reproduce the issue. I'm running the Advanced Example with the latest version of the SDK on an iPad Air 2 (iOS 11.2). Can you please share your device details?

Regards,
Chris Feldman
IMA SDK Team 

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
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/ubrf5LMzooU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+unsubscribe@googlegroups.com.

ima-sdk-adv...@google.com

unread,
Apr 3, 2018, 3:03:17 PM4/3/18
to ima...@googlegroups.com
Hi Marc,

Can you confirm that you're on the latest version of the SDK? By default, the sample is on 3.6.0. Thus far, I've not been able to reproduce the issue on any version of the SDK that I've tried. If there's any other information that I might need, please share it. It's also possible that this might be related to your device specifically.

Regards,
Chris Feldman
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Marc Desharnais

unread,
Apr 4, 2018, 2:20:47 PM4/4/18
to ima...@googlegroups.com
Hi Chris,

I confirm that the SDK I use is 3.7.0.1

Here's the Podfile.lock
PODS:
  - GoogleAds-IMA-iOS-SDK (3.7.0.1)

DEPENDENCIES:
  - GoogleAds-IMA-iOS-SDK (~> 3.6)

SPEC CHECKSUMS:
  GoogleAds-IMA-iOS-SDK: 4cfa8bfa89e4922f5a3dd356f786ec28ca3f4b54

PODFILE CHECKSUM: 58b825629b00667dc5e31670db30cf719306076b

COCOAPODS: 1.4.0


Just to make sure. I'm on a git remote https://github.com/googleads/googleads-ima-ios.git
Commit #c68bfc4e3d038651f9cd50e742b3c1604d45bed3, tag 3.21


I'm not sure what could be device related besides the iOS version :(
Our video playback works well in picture in picture when video ads are disabled so there must be something related to the ads SDK.



--
Marc Desharnais, Ing

Société Radio-Canada
Développeur iOS
Musique et Services Numériques
Bureau 809A Montréal 

2018-04-03 15:03 GMT-04:00 ima-sdk-advisor+support via Interactive Media Ads SDK <ima...@googlegroups.com>:
Hi Marc,

Can you confirm that you're on the latest version of the SDK? By default, the sample is on 3.6.0. Thus far, I've not been able to reproduce the issue on any version of the SDK that I've tried. If there's any other information that I might need, please share it. It's also possible that this might be related to your device specifically.

Regards,
Chris Feldman
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

ima-sdk-adv...@google.com

unread,
Apr 4, 2018, 3:25:08 PM4/4/18
to ima...@googlegroups.com
Hi Marc,

I appreciate your patience as we debug the issue with you. In order for us to work on this, we'll need to be able to replicate the behavior on our own machine. Thank you for verifying your setup. Would it be possible to share a Charles log with your network traffic? That should provide some insight to our team. I'm also curious, are you testing on a physical device or a simulator?

Thank you,
Chris Feldman
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Marc Desharnais

unread,
Apr 4, 2018, 4:26:21 PM4/4/18
to ima...@googlegroups.com
Hi Chris,

I'm testing on a actual iPad Pro.
Model: MM172CL/A
iOS: 10.3.2 (14F89)

I'm sending you the sample app I'm testing with, if that can help.
I know sending a zip file is suspicious but it would ensure we're working on the same code.
Note that I'm always testing with "AdRules Pods" and that the issue sometimes doesn't trigger on the prerolls. In such caseIf I skip the video a bit it might trigger the bug after the midrolls.

In this project I added a delegate method pictureInPictureControllerWillStopPictureInPicture that logs when the picture in picture exits.
For me, this delegate is called after an ad, without any interaction from me beside pressing the "Pip" button during the preroll to start PiP.

To answer your question, yes I can send you Charles log if needed.

I hope this helps!



--
Marc Desharnais, Ing

Société Radio-Canada
Développeur iOS
Musique et Services Numériques
Bureau 809A Montréal 

2018-04-04 15:25 GMT-04:00 ima-sdk-advisor+support via Interactive Media Ads SDK <ima...@googlegroups.com>:
Hi Marc,

I appreciate your patience as we debug the issue with you. In order for us to work on this, we'll need to be able to replicate the behavior on our own machine. Thank you for verifying your setup. Would it be possible to share a Charles log with your network traffic? That should provide some insight to our team. I'm also curious, are you testing on a physical device or a simulator?

Thank you,
Chris Feldman
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

IMA_PiP_Issue.zip

ima-sdk-adv...@google.com

unread,
Apr 5, 2018, 2:12:18 PM4/5/18
to ima...@googlegroups.com
Hi Marc,

I've been testing on a simulator. I'm going to see if I can get my hands on a physical device as it's possible that will make a difference. I will follow-up on this thread as soon as I have an update.

Regards,
Chris Feldman
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Reply all
Reply to author
Forward
0 new messages