Pre-buffering for AVQueuePlayer

Ok, I’ve looked over this problem again and written some code to check out AVQueuePlayer. jollyCocoa’s answer pointed me in the right direction by suggesting to observe the status property on AVPlayerItem. However the documentation doesn’t seem to point out that this property (and it’s AVPlayerItemStatusReadyToPlay value in particular) might be related to buffering. However … Read more

AVFoundation, how to turn off the shutter sound when captureStillImageAsynchronouslyFromConnection?

I used this code once to capture iOS default shutter sound (here is list of sound file names https://github.com/TUNER88/iOSSystemSoundsLibrary): NSString *path = @”/System/Library/Audio/UISounds/photoShutter.caf”; NSString *docs = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; NSData *data = [NSData dataWithContentsOfFile:path]; [data writeToFile:[docs stringByAppendingPathComponent:@”photoShutter.caf”] atomically:YES]; Then I used third-party app to extract photoShutter.caf from Documents directory (DiskAid for Mac). Next step … Read more