Video controls appear on the lock screen when background mode is switched on for Airplay

307 views
Skip to first unread message

Marc Desharnais

unread,
Aug 12, 2015, 1:35:53 PM8/12/15
to Interactive Media Ads SDK, Yanick Castonguay, David Coulombe
Hi!

we encountered an issue with our app while using Google IMA. The issue is reproducible on your iOS Sample app.

Here's how you reproduce it :

- Download the Google IMA Advanced  sample app and make the setup with Cocoa pods.
- In Xcode, select the project and go to Capabilities
- Enable Background modes, and select "Audio and Airplay"

- Launch the App and select preroll.
- During the preroll, press power to lock the device
- Press power again to display the lock screen, where you see controls related to ads. But those controls don't do anything. I think it is misleading for the user as they do not have control at this point.



To me, those controls should not be there as they serve no purpose. The controls should only be shown if Airplay is currently active.

In our application, we want to show controls for video only if Airplay is active. I think it would be best for the SDK to let the application control the lock screen information.

Thank you!

Vu Chau (IMA SDK Team)

unread,
Aug 12, 2015, 5:09:00 PM8/12/15
to Interactive Media Ads SDK, yanick.c...@radio-canada.ca, david.c...@radio-canada.ca
Hi Marc,

Thanks for the message.  However, the issue you brought up isn't related to Airplay per se, but more to supporting background ad playback (hence the controls).  We have a guide on this topic (see Background Ad Playback) that might be helpful for your use case.

Vu Chau
IMA SDK Team
Message has been deleted

Marc Desharnais

unread,
Aug 13, 2015, 1:56:56 PM8/13/15
to Interactive Media Ads SDK, yanick.c...@radio-canada.ca, david.c...@radio-canada.ca
Hi Vu,


thank you for your quick response. I read the documentation you mention and it is quite interesting for allowing ad playback in the background.


I definitely see your point when you mention that background ad support and video controls on the lock screen are related.


So I did a couple of experiment with the iOS ObjC Advanced Example.

- I tried to enable audioSession, enableBackgroundAds and I was indeed able to “activate” the controls so I could play/pause the ads while in the lock screen (which seemed odd by the way for a video ad if Airplay is not currently active). At least the controls are not useless..


- I tried to disable audio session, disable ad background playback and pause the ad manager when going to background, but I still see those controls on the lock screen.


But I was unable to achieve my primary goal. I want the app not to show any video controls on the lock screen. Because if Airplay is not active, play/pause controls are no use because the app is in background or hidden behind the lock screen. 


We  made sure that the controls are not shown when our content is playing, but when the IMA SDK is playing ads it seems to be programmed to show controls on the lock screen. So the question remains : How can we make the controls disappear?

We don’t want to activate the controls, because we feel that playing video in the background is not that useful for our users if airplay is not active.


Thank you!


Marc

Vu Chau (IMA SDK Team)

unread,
Aug 13, 2015, 4:45:39 PM8/13/15
to Interactive Media Ads SDK, yanick.c...@radio-canada.ca, david.c...@radio-canada.ca
Hi Marc,

I see.  Thanks for clarifying your use case.

I'm going to talk to the rest of the team about this behavior, and I'll let you know once I've heard back from them.

Vu Chau
IMA SDK Team

Marc Desharnais

unread,
Aug 31, 2015, 9:27:02 AM8/31/15
to Interactive Media Ads SDK, yanick.c...@radio-canada.ca, david.c...@radio-canada.ca
Is there an update for this issue?

Thanks
Marc

Vu Chau (IMA SDK Team)

unread,
Aug 31, 2015, 12:39:59 PM8/31/15
to Interactive Media Ads SDK, yanick.c...@radio-canada.ca, david.c...@radio-canada.ca
Hi Marc,

I raised this issue with my teammates at the time of my previous post.  They should be getting back to me with a heads-up/progress in the coming days.

Thanks!

Vu Chau
IMA SDK Team

Vu Chau (IMA SDK Team)

unread,
Sep 29, 2015, 10:56:41 AM9/29/15
to Interactive Media Ads SDK, yanick.c...@radio-canada.ca, david.c...@radio-canada.ca
Hi Marc, 

This happens because you enabled airplay without enabling background playback. So normally the controls would work, but since background playback is disabled, they don't respond. 

While we continue working on this issue, as a workaround, when the app enters the background you can call [MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = @{} to hide the controls.

Cheers,

Vu Chau
IMA SDK Team

Dang Nam

unread,
Mar 6, 2023, 9:46:42 AM3/6/23
to Interactive Media Ads SDK
Is there an update for this issue?

Thanks

IMA SDK

unread,
Mar 6, 2023, 2:51:51 PM3/6/23
to dain...@gmail.com, ima...@googlegroups.com

Hello,

 

Thank you for reaching out to the IMA SDK Support Team.

 

It appears that you have replied to a very old thread (from 2015) and I'm afraid some information may no longer be available. Generally, it has been concluded, after several months of investigation, that the IMA SDK is unable to support AirPlay. Please feel free to get back to us if you have additional questions.


Regards,

Google Logo IMA SDK Team


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