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

play youtube video in tvOS

I am facing some trouble with playing youtube videos in my tvOS app. I am using the popular XCDYouTubeKit to get the stream URL as shown below. let playerViewController =…
Neelesh
  • 3,673
  • 8
  • 47
  • 78
0
votes
0 answers

AVMutableVideoComposition frameDuration not working

I have a AVMutableVideoComposition and I want to set the export frame rate (e.g. 10 fps): videoComposition.frameDuration = CMTimeMakeWithSeconds(1, 10); I've got various other instructions like transform on the composition and they all work,…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
0
votes
0 answers

How to configure AVAudioSessionCategoryMultiRoute for playing different audios to built-in speaker and headphones (or bluetooth headphones)?

I found such info: Important: The built-in speaker may be used only if no other eligible output ports (USB, HDMI, LineOut) are…
0
votes
1 answer

Videos in welcome screen using AVPlayer causing memory leak?

In my app, there is a welcome screen consist of 3 screens. They all inherit from one super class. The different between them are just texts and video…
Desmond
  • 767
  • 1
  • 6
  • 18
0
votes
0 answers

xcWorkSpace arises issues in my code

My normal Xcode project compiles completely fine but since I am using pods, I must open the xcworkspace project. This causes the 2 bottom lines of my code to be errors. var session = AVCaptureSession() session.sessionPreset =…
KissTheCoder
  • 679
  • 6
  • 16
0
votes
1 answer

AVPlayer Inside A UIView

So I have a view on my HomeViewController that I want to play a video inside of. on viewDidLoad() I am calling playVideo() here is my code: func playVideo() { guard let filePath = Bundle.main.path(forResource: "video", ofType: "mov") else { …
S. Stark
  • 189
  • 1
  • 1
  • 11
0
votes
2 answers

Screen not rotating back to portrait after leaving AVFullScreenViewController

Using this code to allow the media players to rotate in landscape (which is not supported by the app) while they are in fullscreen : // handle orientation for the device func application (_ application: UIApplication,…
thibaut noah
  • 1,474
  • 2
  • 11
  • 39
0
votes
1 answer

Unknown class AVPlayerViewController in Interface builder file

I am adding AVPlayerViewController in storyboard, but when I run the app I get this error iOS device or simulator. Unknown class AVPlayerViewController in Interface Builder file. How do I fix it?
0
votes
1 answer

tvOS/Swift 3: Why is contentOverlayView not displayed?

I have the following code for a tvOS app. It plays video just as I would like, but the the contentOverlayView I've set does not appear. From examples I've looked at I think it should be working. Can someone please explain what I am doing…
Peter Wiley
  • 820
  • 7
  • 19
0
votes
1 answer

AVPlayer on top of UIView

I'm new to using AVKit and was wondering if it was possible to mask a player onto a UIView. So the frame of the video is the frame of the cell. If so where / how would I implement this. Additionally, If you know of any AVKit quick start guides or…
Stefan
  • 908
  • 1
  • 11
  • 33
0
votes
0 answers

MPMoviePlayerViewController is not working in ios 10.2

When i use below code on ios 10.2, MPMoviePlayerViewController *c = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieLoadStateDidChange:)…
ayushi
  • 101
  • 1
  • 11
0
votes
1 answer

Apple tvOS: Hide subtitles menu option on AVPlayerViewController

When watching a live stream, the subtitles menu option is still present on the video view. How can I hide the complete subtitles group? If the display should be managed by the m3u8, how must the m3u8 look like that the subtitles menu disappears?
Alex
  • 41
  • 4
0
votes
0 answers

play video in iOS + youtube url + objective C

To play a video using AVPlayerViewController, the code below works well: -(void)openVideo{ NSURL *videoURL = [NSURL URLWithString:@"https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"]; AVPlayer *player = [AVPlayer playerWithURL:videoURL]; …
pkc456
  • 8,350
  • 38
  • 53
  • 109
0
votes
2 answers

Swift ImagePicker StartVideoCapture

I'm working on a project which involves video capture. I essentially want to capture video programatically, meaning that I don't want any camera or anything to pop up; I just want video to be recorded between the times two buttons are pressed. I…
newguy222
  • 111
  • 1
  • 11
0
votes
1 answer

Swift ImagePicker VideoCapture didFInishPickingMedia not being called

I'm working on a project which involves video capture. I essentially want to capture video programatically. I defined the imagepicker and started video capture: if (UIImagePickerController.isSourceTypeAvailable(.camera)) { …
newguy222
  • 111
  • 1
  • 11