Does DAI SDK support Picture in Picture

270 views
Skip to first unread message

Matt Lo

unread,
Feb 23, 2021, 10:53:28 PM2/23/21
to Interactive Media Ads SDK
Hi Team,

Does the DAI SDK supports Picture in Picture? Is there any document to implement with 
DAI with Picture in Picture?

I found the following docs:


But I still getting a problem the ad start and complete, the Ad Begin and Complete event not trigger instantly.  

The "Advanced Example" not having Picture in Picture in the latest code.


Regards,
Matthew

 

IMA SDK

unread,
Feb 24, 2021, 3:03:24 AM2/24/21
to jueh...@gmail.com, ima...@googlegroups.com

Hi Matthew,

Thank you for your message.

Although we don’t have a sample app for reference, the IMA DAI SDK does support Picture-in-picture.

Could you please share with us your sample project file so that we can help debugging the issue you are getting? Kindly share the project file to our testing alias: imate...@gmail.com


Regards,


Google Logo
Sherwin Diesta
IMA SDK Team
 


ref:_00D1U1174p._5004Q2DIT0X:ref

Matt Lo

unread,
Feb 25, 2021, 7:17:25 AM2/25/21
to Interactive Media Ads SDK

Hi Sherwin,

I have attached an example project for you to investigate.  Here are the steps to replicate:

1. Pod install and run the project, let the video plays
2. When video plays , exit the app and let the video play in Picture in Picture mode
3. Fast forward to the mid roll ads and let the ads play
4. When ad finished, in XCode log console, not seeing the "Ad break End" event.
5. Wait for a few seconds, the "Ad break end" event triggered, but the last ad was finished long time ago.

So the issue is the stream manager events are not triggering on time.


Please let me know if you have any questions. 


Regards,
Matthew
Screen Shot 2021-02-25 at 10.59.52 pm.png
AdvancedExample.zip

IMA SDK

unread,
Feb 25, 2021, 12:14:24 PM2/25/21
to jueh...@gmail.com, ima...@googlegroups.com
Hi Matt,

I work with Sherwin and will assist you. Thank you for your project. When going to home screen on an iPad simulator running iOS 14.4 compiled using Xcode 12.4, I received this message in output window numerous times "connection to background transfer daemon invalidated",  and video stopped after 2 more seconds. Could you tell us more what steps to take to see what you saw?

Regards,

Google Logo
Aryeh Baker
IMA SDK Team
 


ref:_00D1U1174p._5004Q2DIT0X:ref

Matt Lo

unread,
Feb 25, 2021, 4:18:09 PM2/25/21
to Interactive Media Ads SDK
Hi Aryeh,

I am afraid you need to run the app on real device(iOS 14 ) , because Picture in Picture only support on real device.    Also you might need to use VPN to select location to "Australia" due to the video is protected by GeoBlock.


Regards,
Matthew

IMA SDK

unread,
Feb 26, 2021, 1:46:25 AM2/26/21
to jueh...@gmail.com, ima...@googlegroups.com

Hi Matthew,

Thank you for your message. 

Based on the information you have provided, it appears that your original query about DAI SDK support for picture-in-picture feature has been confirmed, is that correct? It just so happened that you are encountering a behavior wherein the stream events are not triggering on time which is now the concern.

Also, due to security restrictions I’m afraid we are not allowed to use VPN, thus, would it be possible for you to provide us with a stream without geo-restrictions for our reference? This will help the team to investigate the issue further.


Regards,


Google Logo
Sherwin Diesta
IMA SDK Team
 

 

ref:_00D1U1174p._5004Q2DIT0X:ref

Matt Lo

unread,
Feb 26, 2021, 4:24:07 AM2/26/21
to Interactive Media Ads SDK
Hi Sherwin,

Thanks for you reply. 
Picture in Picture feature is confirmed, now is the stream events are not triggering on time.

Could you provide your static IP address to us? we could whitelist your IP address so you can access the stream.


Regards,
Matthew

IMA SDK

unread,
Feb 26, 2021, 1:07:52 PM2/26/21
to jueh...@gmail.com, ima...@googlegroups.com
Hi Matt,

Thank you for the response back, I work along with Sherwin and Aryeh. We are not allowed to give out any IP address or any personal/work related information. If you can share with us a stream that is not geo-restricted. We will be able to have our team look more into this.

Regards,
Google Logo
William Pescherine
IMA SDK Team
 


ref:_00D1U1174p._5004Q2DIT0X:ref

Matt Lo

unread,
Feb 28, 2021, 4:32:22 PM2/28/21
to Interactive Media Ads SDK
Hi William,

Is there any chance any of your team member locate in Australia to bypass the geo-restricted?


Regards,
Matthew   

Matt Lo

unread,
Feb 28, 2021, 5:58:00 PM2/28/21
to Interactive Media Ads SDK
Hi William,

I have attached another project to replicate the issue,  it just added the PiP support.

Here are the steps to replicate the issue:

1. Pod install and run the project, let the video plays
2. When video plays , exit the app and let the video play in Picture in Picture mode
3. Fast forward before the mid roll ads and let the ads play
4. When ad finished, in XCode log console, not seeing the "Ad break End" event when ad finished.
5. Wait for a few mins, the "Ad break end" event triggered, but the last ad was finished long time ago.

So the issue is the stream manager events are not triggering on time on Picture in Picture mode.

Please let me know if you have any questions.

Regards,
Matthew



AdvancedExample.zip

IMA SDK

unread,
Mar 1, 2021, 2:17:06 AM3/1/21
to jueh...@gmail.com, ima...@googlegroups.com

Hi Matt,

Thank you for your reply. Let me share this sample app with the rest of the team to test further. We will get back to you the soonest we have our findings.


Regards,

 

Google Logo
Sherwin Diesta
IMA SDK Team
 

 

ref:_00D1U1174p._5004Q2DIT0X:ref

IMA SDK

unread,
Mar 1, 2021, 9:02:10 AM3/1/21
to jueh...@gmail.com, ima...@googlegroups.com
Hi Matt,

Thank you for your demonstration, I replicated your issue. Note that this issue occurs only when using PIP and the app is backgrounded. Eventually these events will fire, but with lots of delay, or all at once when returning the app to the foreground. This is the intended behavior, and there will be no fix, since it's a limitation of iOS.

Regards,

Google Logo
Aryeh Baker
IMA SDK Team
 


ref:_00D1U1174p._5004Q2DIT0X:ref
Reply all
Reply to author
Forward
0 new messages