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

How to never auto-hide / always show AVPlayer controls?

I am building a macOS app in Objective C based on Apple's demo app AVMovieEditor. I do not want the player controls and timeline to ever hide. The default behavior is for it to show only when the mouse has recently been moving over the player,…
markjwill
  • 206
  • 5
  • 15
1
vote
1 answer

iOS - Use AVPlayerViewController in AVKit obj-c

I am trying to update this deprecated method: 'presentMoviePlayerViewControllerAnimated' however I am not able to import AVKit and use AVPlayerViewContoller. It seems like my Xcode is not seeing this framework somehow. Here is my…
Vuko
  • 109
  • 4
  • 14
1
vote
1 answer

AVPlayerItem.externalMetaData in Objective C with tvOS build Target

I’m implementing a feature for a tvOS app and it keeps crashing with unrecognized selector. The app has a VideoPlayerBase class in objc and both iOS's VideoPlayerController.swift and tvOS's VideoPlayerController.swift are inherited from the base…
Breek
  • 1,431
  • 13
  • 24
1
vote
0 answers

Video is not clear after adding watermark in swift

I am just adding watermark to video. I added to video and loaded into photo library. After that I tried to play, that video file is fully blurred. But, file is playing well. Water mark is added. I downloaded project from…
McDonal_11
  • 3,935
  • 6
  • 24
  • 55
1
vote
1 answer

Convert swift 2 video code into swift 3 video code

The code below displays a video. It works perfect in swift 2 but in swift 3 xcode states that the MPMoivePlayerController code has been phased out. I just would like my video to be displayed in swift 3 like it was in swift 2. import UIKit import…
user6865457
1
vote
1 answer

AVPlayer autoplays but should not (Swift)

I’ve created a very simple AVPlayer within a macOS app. import Cocoa import AVKit import AVFoundation class ViewController: NSViewController { @IBOutlet var playerView: AVPlayerView! override func viewDidLoad() { super.viewDidLoad() …
ixany
  • 5,433
  • 9
  • 41
  • 65
1
vote
0 answers

How to get watched videos to cache with Avplayer

I'm trying to get watched videos cache. But user is didn't watch video its needs to streaming video. What should I do ? Thanks
Murat Kaya
  • 1,281
  • 3
  • 28
  • 52
1
vote
0 answers

AVPlayerViewController fails to play remote video with no error

Have trouble with playing video file picked in picker controller, uploaded to server. "https://starfish.chat/attachment/112/253.mov" Then just downloaded video and added to project. It plays. AVPlayerViewController delegate methods newer…
mike-dutka
  • 254
  • 1
  • 11
1
vote
1 answer

Unrecognized selector when creating AVPlayer

I get an unrecognized selector error when trying to create an AVPlayer from external source. From what I can see, I'm following Apple's guidelines by the book. What I'm trying to do is simply: #import // Not sure if these are both…
Daniel Larsson
  • 6,278
  • 5
  • 44
  • 82
1
vote
1 answer

AVKit Player View Controller Segue break

I'm trying to segue from a view controller to an AVKit Player View Controller. I'm using Vuforia's framework to do image recognition on a camera. My issue is that when I try to segue over, it says that segue just doesn't exist. However, if I segue…
Built In Parris
  • 179
  • 1
  • 3
  • 19
1
vote
0 answers

Quality of AV Kit vs. Brightcove when playing preroll advertisements

I'm trying to decide which framework to go with. I understand that one of the main concerns in video prerolls is maintaining a smooth transition from the ad to the video content, and also video quality itself. How does the quality of Brightcove…
0
votes
0 answers

Convert Data to stream of CVPixelBuffer

How to convert Data to stream of CVPixelBuffer, I am working on CVPixelBuffer output from AVSession and ARSession. following is the code on which I am converting CVPixelBuffer to Data and able to save the data as a file, Now I want to read the same…
dip
  • 3,548
  • 3
  • 24
  • 36
0
votes
1 answer

Video URL not playing in my Swift app (Play button is disabled)

I have a link which I want to play inside my app: https://video-m2se42aed.msigma.in/video/7282/0/1094/6498c142878c493e93d0e6a90312d6ea/ece_nt_bombay_1/master.m3u8?sd=10&b=1200&rebase=on The view I am using to play videos: import SwiftUI import…
AadityaS
  • 29
  • 7
0
votes
1 answer

AVSampleRateKey Crashing when Changing Sample Rate - How to Resolve

The AVSampleRateKey is used to specify the desired sample rate when working with audio using AVFoundation. However, setting AVSampleRateKey to certain values might lead to crashes, particularly when using values other than 44100. func…
Rezwan
  • 1
  • 1
0
votes
0 answers

Swift - Video background is very poor in quality

I've managed to load a video as an animated background in my View (using AVKit and AVFoundation). The code is the following: //MARK: Video background struct PlayerView: UIViewRepresentable { func updateUIView(_ uiView: UIView, context:…
helloimbrando
  • 307
  • 2
  • 13