Re: AVFoundation and the main thread

2017-01-03 Thread Mailing Lists
From my experience in shipping multiple complex AVFoundation apps, you can safely (assuming you know what you are actually doing) • : Build AVAssets / Build AVMutableCompositions Build AVVideoCompositors / Build AVVideoCompositionLayerInstructions Build AVPlayerItems Build

Re: AVFoundation and the main thread

2016-12-21 Thread Andreas Falkenhahn
On 20.12.2016 at 17:58 Kyle Sluder wrote: > On Tue, Dec 20, 2016, at 08:59 AM, Andreas Falkenhahn wrote: >> So everybody knows that all things relating to UIKit have to be done >> on the main thread. >> But what about AVFoundation functions which bear some resemblance

Re: AVFoundation and the main thread

2016-12-20 Thread Jens Alfke
I’ll also argue that if you’re needing to do this kind of thing from a background thread, your code isn’t factored properly. Managing the UI of the app is far too complex a task to try to coordinate among multiple threads. The current best practices for concurrent programming suggest that you

Re: AVFoundation and the main thread

2016-12-20 Thread Kyle Sluder
On Tue, Dec 20, 2016, at 08:59 AM, Andreas Falkenhahn wrote: > So everybody knows that all things relating to UIKit have to be done > on the main thread. > > But what about AVFoundation functions which bear some resemblance to > UIKit APIs? Do these have to be called on the main th

AVFoundation and the main thread

2016-12-20 Thread Andreas Falkenhahn
So everybody knows that all things relating to UIKit have to be done on the main thread. But what about AVFoundation functions which bear some resemblance to UIKit APIs? Do these have to be called on the main thread too or can they also be called from a worker thread? For example, when adding