mirror of
https://github.com/samsonjs/SwiftyCam.git
synced 2026-04-27 15:07:43 +00:00
Fixing ACL's for SwiftyCamViewController
This commit is contained in:
parent
b85adadc29
commit
756fa5363b
2 changed files with 6 additions and 6 deletions
|
|
@ -127,7 +127,7 @@ open class SwiftyCamViewController: UIViewController {
|
||||||
disableFlash()
|
disableFlash()
|
||||||
}
|
}
|
||||||
|
|
||||||
func takePhoto() {
|
public func takePhoto() {
|
||||||
if let videoConnection = photoFileOutput?.connection(withMediaType: AVMediaTypeVideo) {
|
if let videoConnection = photoFileOutput?.connection(withMediaType: AVMediaTypeVideo) {
|
||||||
videoConnection.videoOrientation = AVCaptureVideoOrientation.portrait
|
videoConnection.videoOrientation = AVCaptureVideoOrientation.portrait
|
||||||
photoFileOutput?.captureStillImageAsynchronously(from: videoConnection, completionHandler: {(sampleBuffer, error) in
|
photoFileOutput?.captureStillImageAsynchronously(from: videoConnection, completionHandler: {(sampleBuffer, error) in
|
||||||
|
|
@ -140,7 +140,7 @@ open class SwiftyCamViewController: UIViewController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func startVideoRecording() {
|
public func startVideoRecording() {
|
||||||
guard let movieFileOutput = self.movieFileOutput else {
|
guard let movieFileOutput = self.movieFileOutput else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -176,7 +176,7 @@ open class SwiftyCamViewController: UIViewController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func endVideoRecording() {
|
public func endVideoRecording() {
|
||||||
if self.movieFileOutput?.isRecording == true {
|
if self.movieFileOutput?.isRecording == true {
|
||||||
self.isVideRecording = false
|
self.isVideRecording = false
|
||||||
movieFileOutput!.stopRecording()
|
movieFileOutput!.stopRecording()
|
||||||
|
|
@ -184,7 +184,7 @@ open class SwiftyCamViewController: UIViewController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func switchCamera() {
|
public func switchCamera() {
|
||||||
guard isVideRecording != true else {
|
guard isVideRecording != true else {
|
||||||
print("[SwiftyCam]: Switching between cameras while recording video is not supported")
|
print("[SwiftyCam]: Switching between cameras while recording video is not supported")
|
||||||
return
|
return
|
||||||
|
|
@ -214,7 +214,7 @@ open class SwiftyCamViewController: UIViewController {
|
||||||
disableFlash()
|
disableFlash()
|
||||||
}
|
}
|
||||||
|
|
||||||
func toggleFlash() {
|
public func toggleFlash() {
|
||||||
guard self.currentCamera == .rear else {
|
guard self.currentCamera == .rear else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'SwiftyCam'
|
s.name = 'SwiftyCam'
|
||||||
s.version = '1.0.1'
|
s.version = '1.1.0'
|
||||||
s.summary = 'A Simple, Snapchat-style camera Framework written in Swift'
|
s.summary = 'A Simple, Snapchat-style camera Framework written in Swift'
|
||||||
s.ios.deployment_target = '8.0'
|
s.ios.deployment_target = '8.0'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue