Questions tagged [avkit]

AVKit is an API developed by Apple Inc.

That comes with OS X Mavericks 10.9+ and can be used with Xcode 5.0+ for developing audio and movie software for Mac .

The AVKit software framework is going to eventually replace QuickTime which is now deprecated.

344 questions
2
votes
0 answers

AVMutableComposition with AKAudioFiles just exports the first track

I recently have struggling to get AVMutableComposition working in my synthesizer app. I implemented a function like the one below without Audiokit and it worked perfectly fine. However, when I run the function below I only can here the first file in…
Grant Emerson
  • 404
  • 1
  • 4
  • 13
2
votes
0 answers

Get Image of Face from metadataOutput Swift

This is a similar question to this question which did not receive any answers. I am asking a new one because my bounding is completely different than the previous question. I am detecting the faces of an AVCaptureSession and adding a rectangle to…
Alex Wulff
  • 2,039
  • 3
  • 18
  • 29
2
votes
4 answers

Unable to play .mp4 video file using AVPlayer

I am using the AVPlayer to play the video from url. func playVideoFromUrl(urlString: String){ let videoURL = URL(string: urlString) let player = AVPlayer(url: videoURL!) let playerViewController = AVPlayerViewController() …
pkc456
  • 8,350
  • 38
  • 53
  • 109
2
votes
0 answers

What is this error that I'm getting with AVKit?

I'm making a macOS AVKit app and I'm getting this error when playback of an mp4 finishes: Project[8921:947130] GVA error: scheduleDecodeFrame kVTVideoDecoderBadDataErr nal err : acc_size = 5, datasize = 5, video_nal_count = 0, What on earth does…
A Tyshka
  • 3,830
  • 7
  • 24
  • 46
2
votes
2 answers

AVCapturePhotoOutput - changes in Xcode 9 Beta 5

Just installed the latest XCode version which provided some changes in AVCapturePhotoOutput class, I wonder how to fetch the list of support flash modes. In the previous version, I used supportedFlashModes property which is no more available open…
mbutan
  • 1,359
  • 2
  • 13
  • 23
2
votes
1 answer

Rotate video 90 degrees in AVPlayerViewController - possible?

I cannot figure out how to rotate the video 90 degrees in AVPlayerViewController, anyone have any ideas as to how to do this? I'm unsure how to access the AVPlayerLayer as you normally would.
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
2
votes
1 answer

How to avoid Airplay to freeze when using AVComposition?

My code is as follows: //init mix composition let mixComposition = AVMutableComposition() //video asset let videoAsset = AVURLAsset(url: VIDEO_URL) let videoTrack = mixComposition.addMutableTrack(withMediaType: AVMediaTypeVideo, preferredTrackID:…
Mark
  • 16,906
  • 20
  • 84
  • 117
2
votes
1 answer

Square video using AVFoundation

I followed the given tutorial to create a custom square video recording camera. http://www.netwalk.be/article/record-square-video-ios I am able to export a square video from this, but when i try to play the newly exported file using the url it does…
Ankit Kumar Gupta
  • 3,994
  • 4
  • 31
  • 54
2
votes
0 answers

NSURLSession Performance - Probable race conditions or blocked threads?

I've ran into a bit of a performance issue with my iOS app, this is my first time working with NSURLSession and NSURLRequest, and although I've tried to inform myself as much as I can, I've hit a wall trying to debug a performance issue I'm facing.…
Daniel Ormeño
  • 2,743
  • 2
  • 25
  • 30
2
votes
2 answers

AVAssetExportSession with modified resolution settings

AVAssetExportSession takes a preset as one of its initialization parameters: AVAssetExportSession(asset: AVAsset, presetName: String) where the presets are settings like AVAssetExportPreset640x480 or AVAssetExportPreset1920x1080. If however I want…
Joe
  • 384
  • 3
  • 13
2
votes
1 answer

How to return back to Main.storyboard in tvOS after playback of video ends?

I've got a player going on, and have been instructed on how to set a notification for itemDidFinishPlaying: (AVPlayerItemDidPlayToEndTimeNotification), however, for some reason, that notification function is not called at the end of the video. …
esaruoho
  • 896
  • 1
  • 7
  • 25
2
votes
4 answers

iPhone simulator plays video, real device won't

I am building an app in Swift on Xcode 7.2 I added a video to my ViewController. Here's the code: import UIKit import AVKit import AVFoundation class GymViewController: UIViewController { var playerViewController = AVPlayerViewController() var…
2
votes
1 answer

Play sound when device is in silent mode in ios 8 and later

As per my title, i am searching any code for playing sound when my device is in silent mode. I am searching from 3days but in ios 8 and later no code is working for silent mode. Any help would be appreciated. Please pass me any suggestion and advice…
Abha
  • 1,032
  • 1
  • 13
  • 36
2
votes
0 answers

AVCaptureView record button is not reset after didFinishRecordingToOutputFileAtURL

I'm using AVCaptureView to record videos and all works well when the record button is hit the first time. Able to record video and save it on disk after the recording ends. At this time though, I am not able to restart a second recording. The record…
2
votes
2 answers

AVAssetExportSession exportAsynchronouslyWithCompletionHandler returns failed

I'm implementing AVAssetExportSession to trim a video online but always returns failed. Here is my implementation: NSString *url = @"http://www.ebookfrenzy.com/ios_book/movie/movie.mov"; NSURL *fileURL = [NSURL URLWithString:url]; AVAsset *asset =…
user2924482
  • 8,380
  • 23
  • 89
  • 173