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
1 answer

AVKit unable to stream Dropbox Link Videos

I have been using AVKit to stream a video, below is the code I am using to stream videos in TVOS. But the problem is I am unable to do the same with the Dropbox Link? Is a Dropbox API integration required for this? func _viewVideo(_ url:…
sajang
  • 63
  • 7
0
votes
1 answer

AVPlayerViewController doesn't play local videos

I have added a DemoVideo.mp4 in my project and added it to copy resource file. But when i run the app it doesn't play my video. Here is my method. private func setUpAndPlayVideo() { guard let videoPath = Bundle.main.path(forResource:…
Syed Qamar Abbas
  • 3,637
  • 1
  • 28
  • 52
0
votes
1 answer

Not able to upload recorded video to server using AVFoundation - Swift 3

am using AVFoundation to record the video and send it to the server. Whenever server with my recorded video, it returns Internal server error. But when I upload some dummy video other than my recorded, it's uploading successfully. Adding the code…
0
votes
1 answer

Can't play video from documentsDirectory in iOS

I'm trying to play a video downloaded to the device's document directory. For some reason, it won't happen. All I get is this symbol: Here's my code: let documentPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask,…
David Stenstrøm
  • 762
  • 1
  • 8
  • 22
0
votes
3 answers

How do I dismiss the AVPlayer automatically when playback has completed?

I have an app that plays local videos using the AVPlayerViewController. But when the video has finished playing I want it to close automatically (like the MPMoviePlayerViewController used to do). After posting this question, I managed to solve this…
EmmyG
  • 23
  • 1
  • 10
0
votes
1 answer

AVPlayer is not working when I'm trying to use with this YTVimeoExtractor

When I try to play the video through the AVPlayer, the video loads for some time(the loading symbol appears at the top of the player) then suddenly it stops and the play icon with a crossover is shown. Don't know what is wrong? I can get the video…
Praveen Kumar
  • 298
  • 2
  • 15
0
votes
0 answers

Multiple resolution videos being composed with AVMutableComposition

Is it possible to create a video composed of separate videos of different resolutions? I'm taking two different AVAssets that are MPEG4 videos of different resolution (one 300x300 and another 600x600) and using AVMutableComposition to compose them…
Joe
  • 384
  • 3
  • 13
0
votes
1 answer

Closing AVPictureInPictureController

According to the documentation, the willStop and didStop delegate methods, along with restoreUserInterfaceForPictureInPictureStopWithCompletionHandler get called when the AVPictureInPictureController closes, regardless of how it is closed. How do I…
cable_pair
  • 93
  • 6
0
votes
1 answer

is there something like AVPlayerViewController for playing audio on tvOS?

In tvOS, is there an equivalent to the AVPlayerViewController for playing music with an cover and progress bar, like the one in the music app? AVPlayerViewController Reference
0
votes
1 answer

Unable to play video using AVPlayer with Swift

When I click to play video, it shows like this. Wondering why. No error is shown. I did import AVKit and AVFoundation. Also, I tested in my device and simulator. Still does not work. Any suggestions? Thanks a lot. **Print log** //
Pak Ho Cheung
  • 1,382
  • 6
  • 22
  • 52
0
votes
1 answer

Swift/AppleTV4: How to connect AVPlayer function to AVPlayerViewController?

Here is a rudimentary playMe function calling AVPlayer, playing a MP3, MP4 or Wav via Swift with AppleTV. How do I combine this with the AVPlayerViewController - i.e., how do I make the playMe("video", "mp4") play inside an AVPlayerViewController,…
esaruoho
  • 896
  • 1
  • 7
  • 25
0
votes
1 answer

Not able to play video file on iPad using AVPlayerViewController

I have seen exactly the same issue here but its unanswered so asking the same question again. AVPlayer wont play video from url in iOS9 I tried all various ways to try to play the video but unfortunately they are not working for me. Here is the code…
AmJa
  • 798
  • 1
  • 11
  • 25
0
votes
1 answer

AVPlayerViewController refuses to load/play video files/streams

I'm trying to load HLS streams in my app but I can't get them to even display properly. I have an AVPlayerViewController set up as the initial view controller of my app and the following code: import UIKit import AVKit import AVFoundation private…
0
votes
2 answers

Playing a video file from network folder

I am trying to play a video file from my network path which is \\alan\movies\kids\alladin.mp4. I am able to see and browse the directory from my Mac. The code below work fine if I add the video file as part of the project import UIKit import…
Alan B
  • 2,219
  • 4
  • 32
  • 62
0
votes
1 answer

Checking if any AV devices are connected

I have this code which assumes that an AV decide is connected... AVCaptureDeviceInput *device_input = [[AVCaptureDeviceInput alloc] initWithDevice : [AVCaptureDevice devicesWithMediaType :…
Len
  • 20
  • 1
  • 7
1 2 3
22
23