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

IOS 14 AVPlayer plays on simulator but doesn't on a real device

I have splash screen as a short mov video for my application and I use AVPlayer (code below) for that. It stopped working with the IOS 14 physical device, while on the simulator it works fine. Could you help with that? import UIKit import…
Michael
  • 21
  • 2
2
votes
1 answer

Writing Buffer from AVAudioNodeTap to AVAudioFile (Save audio recording from AVAudioEngine)

I am using AVAudioEngine to monitor microphone input. After the AudioEngine stops I would like to save the audio received into an AVAudioFile for future use. This is my current implementation, and the file does contain data. It is a wav file, but it…
Michael Jajou
  • 312
  • 2
  • 13
2
votes
1 answer

How to make play the next track after selected from array with AVPlayer

I want to create an audio player. I get the tracks from the local directory of the device and put them to the array "playerQueue" with type [AVPlayerItem]. TableView was created with rows of tracks. I want to tap on any row and track should plays -…
VyacheslavB
  • 181
  • 9
2
votes
0 answers

Close PIP video when the video ends?

I'm using AVPlayerViewController to play a local video inline. My desired behavior is that videos playing in a PIP window will close automatically when the video ends. Is there a way to do this with AVPlayerViewController? Edit: Also posted on the…
2
votes
0 answers

Merge two videos on top of each other

I am trying to merge two videos so that second video is on top of other video. My second video has transparent background so my desired outcome looks like this : However i cannot see second video in my outcome Here is my code : func merge(video…
Kaan Baris Bayrak
  • 3,213
  • 3
  • 16
  • 20
2
votes
2 answers

CATextLayer on video pixelated text

I am creating video from images and adding overlay to them. Problem is when I try to add CATextLayer to video. Text is pixelated, take a look at the image This is the code used to generate CATextLayer: private func generateTextLayer(for text:…
Baki
  • 490
  • 4
  • 19
2
votes
3 answers

App Crashes when try to set the maximumValue to the UISlider

When I am trying to play the video I am getting this exception below. *** Assertion failure in -[CustomSlider _setValue:minValue:maxValue:andSendAction:],…
s4nj33b
  • 31
  • 3
2
votes
2 answers

SwiftUI recording video with live preview

Trying to make screen that allows user to record video with 30-second timer, and then I want to send it on server. The problem is delegate method is not called (see 2nd code part). What I did, is PreviewView as UIView, time and session settings.…
George Heints
  • 1,303
  • 3
  • 20
  • 37
2
votes
1 answer

Dismissing AVPlayerViewController doesn't 'kill' the object - it's persisting

I am playing videos that are in my app bundle. They are playing correctly. However, when I call to dismiss the AVPlayerViewController, it visibly is removed from the view hierarchy but, if I turn off the iOS device and turn it back on again, on the…
iOSProgrammingIsFun
  • 1,418
  • 1
  • 15
  • 32
2
votes
1 answer

Ad banners causing MPNowPlayingInfoCenter to lose state

I have an app which plays audio using AVPlayer and I touch the right APIs to get the Now Playing info to update in Control Center. [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback withOptions:0…
Ricky
  • 3,101
  • 1
  • 25
  • 33
2
votes
1 answer

Subtitles won't display if closed caption is off in system settings

I am trying to get subtitles to display regardless of what the device has set under the accessibilities. Currently, if the device is set to English with closed captioning enabled in settings, English subtitles will play, and if the device is set to…
JoshHolme
  • 303
  • 2
  • 15
2
votes
1 answer

AVAssetWriter - Set Custom frame rate

I am using AVAssetWriter to write video frames from ARSession using delegate. func session(_ session: ARSession, didUpdate frame: ARFrame) See below the code used to write images. How can I set custom frame rate like 24, 30 or 60 etc as per our…
jpulikkottil
  • 666
  • 9
  • 24
2
votes
2 answers

"advanceToNextItem()" doesn't allow to loop through ALL videos

I've got auto-playing sequence of video clips with looping behaviour built on KVO. But, in addition to auto-playback, I'd like to advance all the clips using NSButton. So, if I press the Next Video button when my sequence is auto-playing, this…
Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
2
votes
1 answer

How To Get Time of Video Playback When User Closes AVPlayer

In the app, the user is supposed to watch a setup video. If they don't finish watching and click the 'close' button, I want to know where they stopped so I can have the video start at that spot once they start watching again. I want to know what the…
Phontaine Judd
  • 428
  • 7
  • 17
2
votes
0 answers

How can I play transparent videos in GVRKit?

I am creating a Virtual Reality app using Google's GVRKit for Google Cardboard. I need to implement transparency in GVRVideoRenderer. The use case for this is for playing a video over a 360° photo background to give a VR effect. I have used Chroma…