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.

How can I reduce the file size of a video created with UIImagePickerController?

I have an app that allows a user to record a video with UIImagePickerController and then upload it to YouTube. …

objective-c ios video file-upload avfoundation
AVCaptureVideoPreviewLayer orientation - need landscape

My app is landscape only. I'm presenting the AVCaptureVideoPreviewLayer like this: self.previewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:session]; [self.previewLayer setBackgroundColor:[[…

ios orientation avfoundation avcapturesession avcapture
dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib

I have just updated to Xcode 7 and swift 2 and finished fixing the errors that come with the transition. I finally …

macos avfoundation xcode7 dyld
Swift 2.0: Type of Expression is ambiguous without more context?

The following used to work in Swift 1.2: var recordSettings = [ AVFormatIDKey: kAudioFormatMPEG4AAC, AVEncoderAudioQualityKey : AVAudioQuality.Max.rawValue, AVEncoderBitRateKey : 320000, AVNumberOfChannelsKey: 2, AVSampleRateKey : 44100.0] Now, …

ios swift swift2 avfoundation xcode7
Using existing system sounds in iOS App [swift|

Is it possible to use the existing Apple system sounds in my own app? I would like to write a …

ios swift audio avfoundation
AVPlayer And Local Files

I am building a MP3 player for iOS that plays audio files hosted on the web. I want to offer …

iphone ipad avfoundation avplayer
How to use AVCapturePhotoOutput

I have been working on using a custom camera, and I recently upgraded to Xcode 8 beta along with Swift 3. I …

ios swift camera avfoundation swift3
How to turn a CVPixelBuffer into a UIImage?

I'm having some problems getting a UIIMage from a CVPixelBuffer. This is what I am trying: CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(imageDataSampleBuffer); …

ios uiimage avfoundation
How to stop a video in AVPlayer?

I am using this code to play video file using avplayer how do I stop it [videoView setHidden:NO]; NSArray *…

objective-c avfoundation avplayer
How to play audio in background with Swift?

As you see I'm streaming an audio broadcast. But when I press the home button and exit the app streaming …

ios swift audio avfoundation