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

Switch between video and photo media similar to story feature in snapchat or instagram

I allow users to capture both images and videos and save them to my server. When a user taps on an icon they should be able to view all of the media stored in that particular location. Currently, I am having difficulty assessing when a video ends to…
Onicha21
  • 141
  • 2
  • 11
1
vote
1 answer

Swift table view with videos playing in table view cells, memory leak

I am making an iOS app that can be compared to instagram with a feed of videos (no images). I have a table showing custom table view cells, each table view cell contains a video playing using AVKit. I have 6 cells loading at the moment, and it is…
Will Cohen
  • 23
  • 5
1
vote
1 answer

Swift AVAudioPlayer (Xcode) - Play Audio File Outside Application Bundle

In my Xcode project, I have the following code set up (simplified code): import Cocoa import AVKit class ViewController: NSViewController { var audioPlayer = AVAudioPlayer() override func viewDidLoad() { super.viewDidLoad() …
Vakho
  • 87
  • 7
1
vote
0 answers

Certain MP4s from AVKit have choppy playback in Chrome on Android

See this pen: https://codepen.io/keithpickering/pen/qGyvwp On the left is a "Boomerang", which is generated with our iOS app before being uploaded to S3. The other two videos are non-boomerangs also sent from the same app. If you open this pen in…
Keith Pickering
  • 696
  • 10
  • 24
1
vote
0 answers

Streaming audio from a network live stream location

I am trying to play a network audio live stream from our radio station. I followed a tutorial and managed to get it to work, but it plays as if it's a video. I would like to make my own controls (e.g., the user pushes play and a pause button)…
1
vote
1 answer

play multiple AVAudioPlayer at the same time asynchronously?

I have a background AVAudioPlayer who normally works just fine. Now I have some event that triggers an asynchron action with a delay, here I want to play another sound while the other should keep playing. So I make a new…
thisIsTheFoxe
  • 1,584
  • 1
  • 9
  • 30
1
vote
1 answer

I can't record using AVAudioEngine

AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .default) I can record using the above code. However, during playback, only the speakers at the top of the iPhone produce sound. So I would like to add defaultToSpeaker to…
touyu
  • 43
  • 6
1
vote
2 answers

Why is AVPlayer Boundary Time Observer not working?

I am trying to observe a time in the timeline of my AVPlayer. I tried this on the main queue; which did not work. I then switched to a background queue, as advised from this stack overflow post; which did not with either. Looking for a working…
wizeOnes
  • 119
  • 16
1
vote
1 answer

AVPlayerLooper not looping my local video

I'm trying to get a video to play in my macOS project and I want it to continuously loop. I was able to get it to play once but I can't figure out how to get it to loop. I'm using the AVPlayerLooper but seem to be messing up somewhere. Here is my…
Eric Walier
  • 331
  • 2
  • 18
1
vote
0 answers

How to mute Ambient sound coming from device while microphone calibration using AudioKit?

I am using AudioKit for microphone calibration. Mine code is as below: class Manager: NSObject { var mic: AKMicroPhone! var tracker: AKFrequencyTracker! var silence: AKBooster! var defaultGain = 0.25 init() { …
kchopda
  • 312
  • 4
  • 16
1
vote
1 answer

AVAssetExportSession always fails to export

I am trying to modify the metadata of a .mov file. The way I found to do this was to use the AVAssetExportSession. This is the code I am using to try and modify the metadata: AVURLAsset* a = [AVURLAsset URLAssetWithURL:videoPathURL…
Tommy Muir
  • 61
  • 8
1
vote
1 answer

Playing Apple Keynote v8.2 presentation programmatically in macOS

I've got Apple Keynote v8.2 presentation project having .key extension. This presentation contains 5 videos with 4 identical transitions between them. The name of transition is Clothesline. I have two questions: Is it possible to use and play .key…
Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
1
vote
2 answers

Can't get AVPortraitEffectsMatte code to work

I'm trying to follow some code provided by Apple to retrieve an image mask from portrait mode photos using some new classes and objects introduced in iOS 12. The code is…
user339946
  • 5,961
  • 9
  • 52
  • 97
1
vote
1 answer

How to implement a HLS for Radio Live Streaming service in Swift

I am trying to make a radio life streaming service using an AVPlayer. The url I have is http://player.absoluteradio.co.uk/tunein.php?i=a664.aac However AVPlayer does not play it... I am aware that the url does not provide the audio streaming but…
Reimond Hill
  • 4,278
  • 40
  • 52
1
vote
1 answer

Playing a live TuneIn Radio URL iOS Swift

I am working on an app which is intended to play life radio by using TuneIn URLs. In TuneIn, there is an http get request in the API which provides a JSON with all the URL and its bitrates. So …
Reimond Hill
  • 4,278
  • 40
  • 52