How to use AVCapturePhotoOutput

Updated to Swift 4 Hi it’s really easy to use AVCapturePhotoOutput. You need the AVCapturePhotoCaptureDelegate which returns the CMSampleBuffer. You can get as well a preview image if you tell the AVCapturePhotoSettings the previewFormat class CameraCaptureOutput: NSObject, AVCapturePhotoCaptureDelegate { let cameraOutput = AVCapturePhotoOutput() func capturePhoto() { let settings = AVCapturePhotoSettings() let previewPixelType = settings.availablePreviewPhotoPixelFormatTypes.first! let … Read more

Streaming live camera video from iOS (iPhone/iPad) to remote PC / server

I have developed such a library, and you can find it at github.com/jgh-/VideoCore I am updating this answer because I have created a simplified iOS API that will allow you to easily setup a Camera/Mic RTMP session. You can find it at https://github.com/jgh-/VideoCore/blob/master/api/iOS/VCSimpleSession.h. Additionally, VideoCore is now available in CocoaPods.

How to get front camera, back camera and audio with AVCaptureDeviceDiscoverySession

You can get the front camera with the following: AVCaptureDevice.default(.builtInWideAngleCamera, for: AVMediaType.video, position: .front) The back camera: AVCaptureDevice.default(.builtInWideAngleCamera, for: AVMediaType.video, position: .back) And the microphone: AVCaptureDevice.default(.builtInMicrophone, for: AVMediaType.audio, position: .unspecified)

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)