Continued work of phone call interruptions

This commit is contained in:
Andrew Walz 2017-08-25 15:53:16 -06:00
parent a98f190828
commit a3a8c6e3c1
3 changed files with 5 additions and 4 deletions

View file

@ -95,6 +95,10 @@ class ViewController: SwiftyCamViewController, SwiftyCamViewControllerDelegate {
func swiftyCam(_ swiftyCam: SwiftyCamViewController, didSwitchCameras camera: SwiftyCamViewController.CameraSelection) {
print(camera)
}
func swiftyCam(_ swiftyCam: SwiftyCamViewController, didFailToRecordVideo error: Error) {
print(error)
}
@IBAction func cameraSwitchTapped(_ sender: Any) {
switchCamera()

View file

@ -295,8 +295,6 @@ open class SwiftyCamViewController: UIViewController {
// MARK: ViewDidLayoutSubviews
/// ViewDidLayoutSubviews() Implementation
/// ViewDidLayoutSubviews() Implementation
private func updatePreviewLayer(layer: AVCaptureConnection, orientation: AVCaptureVideoOrientation) {
layer.videoOrientation = orientation
@ -631,7 +629,6 @@ open class SwiftyCamViewController: UIViewController {
/// Configure image quality preset
fileprivate func configureVideoPreset() {
if currentCamera == .front {
session.sessionPreset = videoInputPresetFromVideoQuality(quality: .high)
} else {

View file

@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'SwiftyCam'
s.version = '2.6.0'
s.version = '2.7.0'
s.summary = 'A Simple, Snapchat inspired camera Framework written in Swift'
s.ios.deployment_target = '8.0'