mirror of
https://github.com/samsonjs/SwiftyCam.git
synced 2026-04-27 15:07:43 +00:00
Continued work of phone call interruptions
This commit is contained in:
parent
a98f190828
commit
a3a8c6e3c1
3 changed files with 5 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue