Arguably the wrong place for this sidetrack, but here's my idle speculation:
* Core Audio works in the simulator because OS X has a substantially-similar (bordering on identical) framework. * AV Foundation capture doesn't, because AV Foundation didn't exist on the Mac back when the Simulator was written back in the Leopard era.
I don't think this limitation reflects on the state of AV Foundation on iOS in any way; it's just a limitation of the Simulator. In fact, in the iPhone OS 4 era, AV Foundation apps that touched the capture APIs couldn't even compile for the Simulator. You'd have to #ifdef around it. At least now, all those calls just no-op in the Simulator.
Will Simulator ever support the capture APIs? Maybe they could use your Mac's iSight or other attached camera, but I'm not sure how useful this would end up being (if you're doing callbacks on an AVCaptureVideoDataOutput, getting the completely different aspect ratios, data formats, and unrealistic performance from the Simulator would be of pretty dubious value).
So I don't think I mind having AV Foundation capture being device-only… Apple likely has better use for engineering resources?
--Chris
On Jan 24, 2014, at 10:21 AM, Beinan Li < email@hidden> wrote: ... a question about Chris' answer:
""" ... the fact that AVFoundation capture doesn't work on the simulator.
"""
Is this a work-in-progress or a design decision?
I'm about to migrate my source code to support AVFoundation since it was said that the overlapping CoreAudio C API is going to retire to give way to AVFoundation. When something still does not work, maybe it's not the right time for migration yet? Apologies advance if I have any misunderstanding or this info can be found somewhere obvious.
Thanks, Beinan
|