Configure the camera of a device by the AVFoundation framework