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
7
votes
3 answers

Saving video from CMSampleBuffer while streaming using ReplayKit

I'm streaming a content of my app to my RTMP server and using RPBroadcastSampleHandler. One of the methods is override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) { switch sampleBufferType…
DmitryoN
  • 310
  • 2
  • 11
7
votes
3 answers

iOS 9: Using AVPlayerViewController Swift. (crossed out play button)

I'm having some trouble playing video content on both an ios device and in the simulator. Goal: Stream a video from an online resource given here: public video streams using hls using the AVPlayerViewController, just to learn how it works. This…
CostelloNicho
  • 704
  • 1
  • 9
  • 20
6
votes
2 answers

Memory leak when using AVCaptureSession to AVAssetWriter using AVAssetWriterDelegate for HLS

We have found AVAssetWriter to leak memory when using the needed delegate AVAssetWriterDelegate to create HLS fMP4 video. Even before ever using the given segment data to process and store. When releasing the memory by hand (it feels like this is…
Jory de Kort
  • 262
  • 2
  • 13
6
votes
1 answer

Best way to play silence using AVAudioPlayer on iOS

I found myself in a situation where I need to simulate audio playback to trick OS controls and MPNowPlayingInfoCenter into thinking that an audio is being played. This is because I am building a player that plays multiple audio tracks, with pauses…
Witek Bobrowski
  • 3,749
  • 1
  • 20
  • 34
6
votes
0 answers

If wanting to resume user's background audio when muting a playing video in app, how best to do it with minimal interruptions?

Apologies for the title, a little tricky to explain. Imagine a user is listening to Spotify or something in the background while using my app, and they tap on a video to play it. The video defaults to muted, so Spotify continues. THEN the user hits…
christianselig
  • 405
  • 4
  • 17
6
votes
1 answer

AVPlayer stops playing video after buffering

When I load a video from the internet (10-40MB large) I am unable to provide a smooth playing experience. My AVPlayer either loads the whole video and then plays it, or plays 1s, buffers and then just stops playing. I tried endless libraries,…
thelearner
  • 1,440
  • 3
  • 27
  • 58
6
votes
5 answers

How can I get Camera Calibration Data on iOS? aka AVCameraCalibrationData

As I understand it, AVCameraCalibrationData is only available over AVCaptureDepthDataOutput. Is that correct? AVCaptureDepthDataOutput on the other hand is only accessible with iPhone X front cam or iPhone Plus back cam, or am I mistaken? What I am…
Nicolas Degen
  • 1,522
  • 2
  • 15
  • 24
6
votes
2 answers

how to fetch resolution supported by video .m38u file url in swift

I am currently working on HTTP Live streaming video with AVPlayerViewController / AVPlayer I am playing a video with .m3u8 file supported It is playing fine but my question is that can I have the data of video like I have to set 4 types of…
Divyesh Gondaliya
  • 884
  • 11
  • 21
6
votes
0 answers

AVURLAsset not loading video on documents folder, even using fileURLWithPath

been struggling with this for the past couple of hours, hopefully someone has run into it before I download a file that from a server to my documents folder File is there and valid (checked with iExplorer on device and the local directory of the…
David Homes
  • 2,725
  • 8
  • 33
  • 53
6
votes
6 answers

Getting url for PHAsset

I am using a custom image picker to pick a time lapse and I want to get the url of the picked time lapse so I can then play the time lapse. - (void)qb_imagePickerController:(QBImagePickerController *)imagePickerController…
Tom Fox
  • 897
  • 3
  • 14
  • 34
6
votes
0 answers

How to show subtitles using srt files if videos are played using AVPlayerViewController?

I am using AVPlayerViewController of AVKit framework for playing videos directly in landscape mode. I want to know how to show subtitles. I searched but dint find any solution about. I was using MPMoviePlayerViewController for playing Videos but as…
IOS Dev
  • 286
  • 2
  • 14
5
votes
1 answer

How can I hide the buttons on the Video Player with SwiftUI on macOS?

VideoPlayer(player: AVPlayer(url: URL(fileURLWithPath: Bundle.main.path(forResource: "*****", ofType: "mp4")!))) How can I hide the buttons on the VideoPlayer. I want the video to be repeated constantly. You can access the VideoPlayer object by…
Ufuk Köşker
  • 1,288
  • 8
  • 29
5
votes
1 answer

Improve body tracking performance of VNDetectHumanBodyPoseRequest

I am trying to improve the performance of drawing the skeleton with body tracking for VNDetectHumanBodyPoseRequest even when further than 5 metres away, and with a stable iPhone XS camera. The tracking has low confidence for the lower right limbs of…
Pranav Kasetti
  • 8,770
  • 2
  • 50
  • 71
5
votes
0 answers

iOS - EXC_BAD_ACCESS com.apple.avkit.seekQueue crash

I'm trying to debug a crash for which I do not know the cause. Unfortunately, all I have is a stack trace I have retrieved from Crashlytics, and there is little evidence I can find of my app causing this to happen, so unfortunately I cannot provide…
Jonathan Chen
  • 716
  • 8
  • 19
5
votes
1 answer

Why does AVPlayerView not have a member named "player" in Swift

I was trying to use AVPlayerView in Swift, but the compiler complaints that it cannot find a member named player in AVPlayerView. But AVPlayerView clearly does have a property called player. And other properties or methods are fine. It seems that…
Junfeng
  • 940
  • 10
  • 19
1
2
3
22 23