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
1
vote
0 answers

Detect Whether Or Not Video Clip Is Copy Protected

I have a desktop (macOS) application that reads video clips (.mov, .m4v, .mp4...). The application reads a video clip as an avAsset object as follows. import Cocoa import AVKit class VideoViewController: NSViewController { var videoPlayer:…
El Tomato
  • 6,479
  • 6
  • 46
  • 75
1
vote
1 answer

Multiple CALayer updates for single Vision/CoreML inference

I am trying to use Vision and CoreML to perform style transfer on tracked objects in as-close-to-real-time as possible. I am using AVKit to capture video, and AVCaptureVideoDataOutputSampleBufferDelegate to get each frame. At a high level, my…
tyrotyrotyro
  • 55
  • 1
  • 7
1
vote
1 answer

Exporting a mirrored video with AVMutableComposition causes resizing issues

Everything works as expected if I turn off the mirroring on the front camera. However, if I turn it on, my final exported video has crucial resizing problems: This is how I currently manage the mirroring for my videos: if currentDevice ==…
thelearner
  • 1,440
  • 3
  • 27
  • 58
1
vote
0 answers

Terms in AVFoundation Programming guide are confusing

I'm reading AVFoundation Programming guide by apple but i cannot figure out exactly what is "presentation" state and "track" In this paragraph "To control the playback of assets, you use an AVPlayer object. During playback, you can use an…
PrepareFor
  • 2,448
  • 6
  • 22
  • 36
1
vote
1 answer

How to play video in full screen in Apple TV (TvOS)

in IOS apps, AVKit provides AVPictureInPictureController, which provides many features like full screen, play, pause. i want to implement same in TVOS, but there is no such class in AVKit.
1
vote
1 answer

Playing a local Video in a container view Swift 4

I am trying to play a video in a container view called AVPlayerViewController however when you click on the player view to play the video it does not play. Is there any way to fix this? Here is the code I am using to try and play the video: import…
T.Shannon
  • 11
  • 1
  • 3
1
vote
0 answers

AVPlayer unable to retrieve title metadata for arbitrary items

I can't seem to identify any pattern here, but AVPlayer is unable to get the track title metadata for some (but not all) mp3 files, usually ones which are over an hour long. In all these instances, other metadata like artwork, artist or album title…
NomNom
  • 73
  • 1
  • 7
1
vote
1 answer

link error using AVRoutePickerView

I am trying to use AVRoutePickerView in my app but when I build the project I am getting linking error: Undefined symbols for architecture arm64: "_OBJC_METACLASS_$_AVRoutePickerView", referenced from: _OBJC_METACLASS_$_PttVolumeView in…
RuLoViC
  • 825
  • 7
  • 23
1
vote
0 answers

Cannot play video and show capturesession at the same time

I am working with an application which requires both playing video (from external source) and show self image. The idea is, I have 2 views in the viewcontroller where 1 is for playing video and 1 is for self image. Currently, I can get self image…
Le Trong Triet
  • 101
  • 1
  • 10
1
vote
1 answer

Create VideoPlayer With Custom Size in Swift 3

i want to show .mov file in custom size. i have an xib file for my controller. thats top view is subclass of UIView. i want to show video in this view. there is my code for create video view. but there is problem in size of my video player. how…
ava
  • 1,148
  • 5
  • 15
  • 44
1
vote
1 answer

Swift 3 Convert Data to AVAsset or PHAsset

I need to convert Data object to AVAsset. Once I needed to save a video in Realm as Data object. To save it, I converted AVAsset to Data. Now I need to convert it back and save a video to cameraRoll. Maybe you can suggest some other solutions for…
1
vote
3 answers

How to keep AVMIDIPlayer playing?

I'm trying to use Apple's AVMIDIPlayer object for playing a MIDI file. It seems easy enough in Swift, using the following code: let midiFile:NSURL = NSURL(fileURLWithPath:"/path/to/midifile.mid") var midiPlayer: AVMIDIPlayer? do { try…
benwiggy
  • 1,440
  • 17
  • 35
1
vote
0 answers

AVPlayerViewController in Navigation Stack Possible?

I am working on a production app and I need to use an instance of AVPlayerViewController to play videos. I would like to have a show segue present the controller by pushing it onto the navigation stack. However, this leads to strange behavior,…
andypf
  • 197
  • 2
  • 10
1
vote
1 answer

HLS && .m3u8in iOS 10

I am trying to get a .m3u8 video stream to play within my app. I am programming in Swift for iOS 9 and 10. Here is what I got so far: import UIKit import AVKit import AVFoundation import DynamicBlurView class VideoPlayerViewController:…
S. Stark
  • 189
  • 1
  • 1
  • 11
1
vote
0 answers

How does Snapchat & Instagram Stories handle skipping back and forth between clips?

As the title states, what is used to allow for the videos to seamlessly skip both back and forwards? I've attempted using AVPlayer with an Array of AVPlayerItems and manually swapping the current video, and I've used AVQueuePlayer and rebuilding…