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
1 answer

AVPlayerViewController not supporting PiP on iPhone

I have followed Apple's steps in order to get my AVPlayerViewController to support in-app and background Picture in Picture playback. func playerViewController(_ playerViewController: AVPlayerViewController,…
Ricky
  • 3,101
  • 1
  • 25
  • 33
1
vote
1 answer

How to loop videos with AVQueuePlayer after it completes

I have an array of URLs that I then turn into an array of AVPlayerItems and use AVQueuePlayer to loop through the videos- usually 1-7 videos at a time. However when it stops I am not sure how to start it again to play the same array of videos until…
1
vote
1 answer

How to set an observer on the queue player's currentItem?

I am trying to set an observer for the currentItem of the AVQueueplayer but I get an error called EXC_BAD_ACCESS. Can someone help me please? Thanks for your attention. I’m looking forward to your reply. Here is my code: struct VideoPlayerS :…
NYBSZ37
  • 61
  • 7
1
vote
1 answer

Enable AVPlayerViewController customInfoViewController interaction tvOS

I am creating a player app for tvOS. I am trying to add a button to restart the playback (I can not use the Markers). The Apple Human Interface Guidelines states: The built-in video player includes an info panel that displays information about the…
gianpispi
  • 611
  • 1
  • 5
  • 10
1
vote
0 answers

AVPlayer video frozen yet audio is playing

Hi could anyone please help me with the following. In my UIViewContoller I have a tableView and one instance of AVPlayer that receives the different url per cell for playing and embedded as subview in the tableViewCell. And I need to implement…
Lina_F
  • 131
  • 2
  • 10
1
vote
1 answer

Can't pause AVPlayer with custom button

I am trying to make a detailed view in swift, but I just can't figure out a way to pause the video with a custom button. And also when I go back to my list I can still hear the video playing in the background. Here is my code for the AVPlayer and…
NYBSZ37
  • 61
  • 7
1
vote
1 answer

Playing Audio in Background at a certain time

Using Swift5.2, Xcode11.4 and iOS13.4, I try to run Audio at a certain time in the future. Moreover, the App is in background mode (and the App is completely closed). The Audiosession must be set up to keep the App responsive and the Audio sound…
iKK
  • 6,394
  • 10
  • 58
  • 131
1
vote
2 answers

Compressing and encoding an AVAsset to mp4

I am trying to compress an AVAsset to lower quality and then export it as an mp4. The input asset could be any type of video that the camera roll allows. The problem I am running into is that when I try to export an asset to…
Nick
  • 247
  • 2
  • 9
1
vote
0 answers

Dismissing AVPlayerController in full screen via swipe gesture in a portrait-only app results in black screen?

I have an app that is locked to portrait mode (only "portrait" box checked in Build Settings in Xcode). In a ViewController I have an AVPlayerViewController in a containerView that loads a remote url. It's my understanding that since WWDC19/iOS 13,…
dank_muffin
  • 263
  • 2
  • 12
1
vote
1 answer

Applying a filter on captureOutput is very laggy and crashes after a specific time

I have successfully implemented a filter on my camera preview. Here is the initialization, in viewDidLoad(): sessionQueue.async { switch self.setupResult { case .success: // Only setup observers and start the…
ProjektWeinheim
  • 201
  • 3
  • 10
1
vote
1 answer

AVKit and ID3 metadata keys

I'm trying to extract all the available meta-data from mp3 files (amongst others) using the AVKit framework. I first get the "common" metadata with something like: let asset = AVAsset(url: URL(fileURLWithPath: path)) for item in…
Frank R.
  • 2,328
  • 1
  • 24
  • 44
1
vote
1 answer

Empty array in availableMetadataObjectTypes when setting up an AVCaptureSession

I wanted to configure a camera with scanning QR codes. But when trying to add the supported metadata types I found that the array of availableMetadataObjectTypes is empty. I ended up with this code: private var captureDevice: AVCaptureDevice? { …
ph1psG
  • 568
  • 5
  • 24
1
vote
0 answers

iOS: AVCaptureSession no audio when maxDuration met

today I have an issue with the AVCaptureSession. My issue is that when I set the MaxRecordedDuration to let's say 23 seconds, if the 23 seconds is reached and the recorder is still recording then it will stop with an error. I have no issue with…
1
vote
1 answer

Segue to different controllers from one cell (a detail view and a avcontroller)

When the cell is tapped if there is a video, I want to show only the video (in a avPlayerViewController), if there is no video it performs a segue to a detail vieww I have tried this: func collectionView(_ collectionView: UICollectionView,…
H. Osjir
  • 145
  • 2
  • 7
1
vote
0 answers

iOS - AVPlayer can't stream video url from https localhost server

I'm trying to create a streaming app on iOS. So at first I tried with an http url and it didn't work because of security reasons they say so I created an https server on Android using NanoHTTPD and I'm able to access the new https server with…
DoW
  • 23
  • 2
  • 4