As mentioned in the previous chapters, smartphones have replaced cameras. Nowadays, it is very common to take pictures or record videos and upload them on websites such as Facebook or Youtube.
Using UIImagePickerController
can be enough if you just need to take a photo or record a simple video. However, there are times when you need to do more advanced tasks. UIImagePickerController
is not enough to work with low level media manipulation. To do it, you need to use the AVFoundation framework.
In this chapter, we are going to create an app where the user will take an existing video and replace its sound with a narrative.
In this chapter, we will cover:
Playing a video with AVFoundation
Audio recording
Working with temporary files
Querying with the
Photos
frameworkMerging assets