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 to play video with AVPlayerViewController (AVKit) in Swift

How do you play a video with AV Kit Player View Controller in Swift? override func viewDidLoad() { super.viewDidLoad() let …

ios swift avfoundation avplayerviewcontroller avkit
How to play a sound using Swift?

I would like to play a sound using Swift. My code worked in Swift 1.0 but now it doesn't work anymore …

ios swift avfoundation
Making the iPhone vibrate

How can the iPhone be set to vibrate once? For example, when a player loses a life or the game …

ios cocoa-touch avfoundation vibration
Capture image via captureStillImageAsynchronouslyFromConnection with no shutter sound

I am trying to capture an image during a live preview from the camera, by AVFoundation captureStillImageAsynchronouslyFromConnection. So far the …

ios objective-c avfoundation
Check play state of AVPlayer

Is there a way to know whether an AVPlayer playback has stalled or reached the end?

ios objective-c iphone avfoundation avplayer
How do I export UIImage array as a movie?

I have a serious problem: I have an NSArray with several UIImage objects. What I now want to do, is …

ios iphone uiimage export avfoundation
Looping a video with AVFoundation AVPlayer?

Is there a relatively easy way of looping a video in AVFoundation? I've created my AVPlayer and AVPlayerLayer like so: …

ios objective-c swift avfoundation avplayer
Knowing when AVPlayer object is ready to play

I'm trying to play an MP3 file that is passed to an UIView from a previous UIView (stored in a …

iphone avfoundation audio-streaming avplayer
AVFoundation, how to turn off the shutter sound when captureStillImageAsynchronouslyFromConnection?

I am trying to capture an image during a live preview from the camera, by AVFoundation captureStillImageAsynchronouslyFromConnection. So far the …

ios iphone cocoa-touch camera avfoundation
iOS: How to use MPMoviePlayerController

I've created a blank project (iOS) and put this in my viewDidLoad: NSString *moviePath = [[NSBundle mainBundle] pathForResource:@"Movie" ofType:@"m4…

objective-c ios video mpmovieplayercontroller avfoundation