The Swift version of Apple demo project AVCam( https://developer.apple.com/library/ios/samplecode/avcam/introduction/intro.html )