Top "Avfoundation" questions

The AVFoundation framework provides both Objective-C and Swift interfaces for editing and playing audio-visual media in a Mac OSX or iOS application.

Set front-facing camera in Xcode

Set front-facing camera in Xcode. How can I do that? Set front-facing camera in Xcode. AVCaptureSession *session = [AVCaptureSession new]; if ([[…

iphone ios camera avfoundation
iOS - Scale and crop CMSampleBufferRef/CVImageBufferRef

I am using AVFoundation and getting the sample buffer from AVCaptureVideoDataOutput, I can write it directly to videoWriter by using: …

iphone objective-c ios avfoundation cmsamplebufferref
How to Add Live Camera Preview to UIView

I run into a problem, I'm trying to solve within UIView boundary, is there any way to Add Camera Preview …

ios iphone swift avfoundation
Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time?

I want to record video and grab frames at the same time with my code. I am using AVCaptureVideoDataOutput for …

iphone image-processing video-capture avfoundation
How to get video frame of the AVPlayer?

I have PlayerView class for displaying AVPlayer's playback. Code from documentation. #import <UIKit/UIKit.h> #import <AVFoundation/…

objective-c avfoundation avplayer avplayerlayer
How to generate audio wave form programmatically while recording Voice in iOS?

How to generate audio wave form programmatically while recording Voice in iOS? m working on voice modulation audio frequency in …

iphone ios avfoundation core-audio audiotoolbox
ASSETWriterInput for making Video from UIImages on Iphone Issues

I try the following 2 methods of appending UIImages pixelbuffer to ASSETWriterInput. Everything looks good except there's No data in the …

iphone image video avfoundation
How do I use AVAssetWriter?

I’d like to take some video frames and encode them into a video. It looks like that’s exactly …

ios avfoundation avassetwriter
Capturing Video with AVFoundation

I've been looking around on Stack and I have found similar questions to this, but none have worked for me. …

ios swift avfoundation media
How Do I Get Audio Controls on Lock Screen/Control Center from AVAudioPlayer in Swift

New to iOS development, so here goes. I have an app that is playing audio - I'm using AVAudioPlayer to …

ios swift avfoundation avaudioplayer mpmusicplayercontroller