I am using AVFoundation and pressing the home button on my device stops it recording from the front camera. Is there a way for me to keep recording from the front camera even after the home button is pressed? Why does pressing the home button stop me from recording? Thanks
No. You cannot record video while your app is in the background.
Allowed background tasks:
Read Implementing Long-Running Background Tasks: https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4-SW24