-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable Shutter sound when taking Photo #28
Comments
It is not possible to disable the shutter sound manually. Such attempts result in a rejection from the app store due to this section in App Store Guidelines:
However, the shutter sound should not go off while video is recording. If you call the Andrew |
@Awalz func swiftyCam(_ swiftyCam: SwiftyCamViewController, didBeginRecordingVideo camera: SwiftyCamViewController.CameraSelection) {
self.cameraActivity(state: .start)
Timer.after(0.2) {
self.takePhoto()
}
} |
This is currently my code I just used to test. I wrote a delay function which takes a photo 0.2 seconds after video begins recording.I did get any shutter sounds: func swiftyCam(_ swiftyCam: SwiftyCamViewController, didBeginRecordingVideo camera: SwiftyCamViewController.CameraSelection) {
// UI animations from demo project
print("Did Begin Recording")
captureButton.growButton()
UIView.animate(withDuration: 0.25, animations: {
self.flashButton.alpha = 0.0
self.flipCameraButton.alpha = 0.0
})
delay(delay: 0.2) {
self.takePhoto()
}
}
func delay(delay:Double, closure:@escaping ()->()) {
DispatchQueue.main.asyncAfter(deadline: .now() + delay) {
closure()
}
} Andrew |
@Awalz This is also another very random occurance. Alot of times I wont get the shutter either but also I'll get it abit from time to time. I just find another method to get a thumbnail photo from the video |
@Awalz
Is it possible to disable the shutter sound when the
takePhoto
method is called?In my usecase, while user is recording, at some point I also
takePhoto
. That way at output I have both a video and a thumbnail photo. But I dont want thetake photo
sound to go off.The text was updated successfully, but these errors were encountered: