Picture in Picture Disappears Even Though Audio Continues - swift

I've implemented picture in picture with the AVPictureInPictureController class. It works as long as the application is in focus. From the moment the application is pushed to the background, the picture in picture view fades out and disappears. The audio of the video continues to play in the background.
The application follows Apple's guidelines by enabling the correct background mode and configuring the audio session. The moment the application enters the background, the pictureInPictureControllerWillStopPictureInPicture(_:) and pictureInPictureControllerDidStopPictureInPicture(_:) delegate methods of the AVPictureInPictureControllerDelegate protocol are invoked, indicating that picture in picture is about to be stopped.
There are no logs that point to the root of the problem. Any help or pointers are much appreciated.

It appears the issue was caused by the Brightcove SDK. You can find more information on the Brightcove website.

Related

App Permissions pop-up for Location Services never shows on screen recorded video

I know this is not a programming question but thought I would give it a try anyway. I have been unable to get a app screen recording to show popup in recording that user gets when starting app for first time. I can see the pop up clear as day but it never shows on recording.
Is there a trick to get this pop up to show? App Connect says it is required in the video...so kind of stuck. I have tried QuickTime Player, iPhone screen recording, etc to no avail. Running Catalina v10.15.6. Thanks!

Background music closes on taking picture from camera UIImagePicker

When I take picture from camera using UIImagePicker, background music (from ipod app, pandora app) stops. It's not happening for facebook app. Is there a separate delegate for this? Please help
This might be due to your Audio Session policy. Taking a picture makes a "click" noise. Perhaps this is causing all other sound to be stopped because of your Audio Session.

Overlay on vimeo movie on iPad/iPhone not clickable

We have a embedded background movie on giardinohotelgroup.ch (if you click on a small movie, the whole movie starts)
On desktop everything works as expected (the topbar is overlapping the movie and the links are still clickable)
The problem is, the same functionality doesn't work on iPad/iPhone.
The links are clickable as long the movie didn't started. As soon the user pushs the playbutton the links are not clickable anymore.
Do someone know why? Should not be a z-index issue because the links are not behind the movie.
iOS does not allow interaction with any elements above a video when the native controls are used, which we do in the current version of our player. On the iPhone, when they hit play it will automatically go into full screen and there is no way to prevent that.

How to relaunch an Air-based iOS application from the very first page?

My application is an Air-based iPhone app. It opens with the last page I visited before clicking the Home button, each time I relaunch the app, while I need to open with the splash screen onward. How can I resolve this issue?
Thank you for any help.
When you press the Home button, you don't terminate a running app. I'm sure that many of us developers have stuck with this mental model of how iOS used to work without multitasking.
So, the splash screen, or rather, the default image (Default.png) should really appear once (when your application launches). Some times, the default image appears when coming out from the background state, but this happens only if your app takes too long to show its UI. In fact, on fast iPhones, the default image disappears almost instantly even on launch (for well-written apps, that is).
I should also note that Apple actively discourages the use of the default image for splash screens. These should only be used for creating an illusion of transition, from a "launching state" (which the default image is supposed to portray), to the running state.
However, if you really have to show a splash screen every time, you should implement such a mechanism in code. applicationDidBecomeActive: is a good place to start, if you are writing code in Objective-C.
I don't know the event model in Air, so I can't really give you any hints for that.
The above answer, though old, does not answer the question. Sure, Apple gives guidelines regarding splash screen and all, but the poster asks how to prevent the app from resuming from it's previous position. If you want the app to terminate when put in the background you need to look into the UIApplicationExitsOnSuspend option. There's also an Adobe blog post explaining a bit more about different background behaviors.

iPhone SDK: Welcome video

Right, I have a video ready for it to be played on start up of my iphone App. How can I get this implemented into my Xcode project?
I would like it to load as soon as the app is loaded, and the after it is played, to follow onto the correct view controller where the main bulk of my programming is.
It's not clear which part you have trouble with:
Playing video and getting notified when it's finished: See "How do i initiate video playback in my code?" from Audio/Video coding howtos.
Starting it as soon the application is loaded: applicationDidFinishLaunching is a good place to call.
The issue is that you'll see your window's content until the video is loaded, one possible workaround:
add an image of the first frame to
the window, and hide that image when
the video finished
you should also
add this first frame as
Default.png to show it until
your application is loaded
you might need to hide the status bar on startup (UIStatusBarHidden) and show it when the movie finished (setStatusBarHidden).