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

Composing multiple videos causes hang

I am working on an app that composes multiple video clips taken by the user. The clips are recorded on the camera, and overlayed with another video and then the recorded clips are composed together into one long clip. The length of each clip is…
Dan F
  • 17,654
  • 5
  • 72
  • 110
-1
votes
1 answer

import AVKit - no such module on tvOS, possible for iOS/multiplatform though

When starting a new tvOS project and try to import AVKit it says no such module available. I add them on Frameworks, Libraries and Content - still nothing. Double checked if they are in BuildPhases - Link Binary with Libraries Cleaned build…
pedroACS
  • 1
  • 1
-1
votes
1 answer

How do i save video to new directory in ios?

I'm working with filemanager. So far I'm able to initialize my directory but when I try to save data there, the error i get is "error: Cannot create file".There seems to be an issue with the way I'm creating my path because when I use a temporary…
codechef
  • 55
  • 1
  • 8
-1
votes
1 answer

[iOS]: Picture in picture not working in UIKit class using UIViewControllerRepresentable

I'm trying to implement a picture in picture custom player, with the following setup up: private func setupCustomPlayer(){ let playerLayer = AVPlayerLayer(player: player) playerLayer.frame = videoView.bounds …
Alfredo Luco G
  • 876
  • 7
  • 18
-1
votes
1 answer

AVPlayer won't play local files until i add them to the project

i would like to play video files that are for example on my desktop, but i only get them playing, if i'm adding them to my project. This works: guard let path = Bundle.main.path(forResource: "video", ofType:"mov") else { …
-1
votes
1 answer

Using AVFoundation to record a video and add it directly to a table view in Swift

I am trying to make an app that allows me to record a video, display the preview of the video with the option to save it if the user chooses to do so (similar to snapchat), and once they hit send it will append to a message style chat window. I've…
-1
votes
1 answer

How to play a video in a macOS application with swift?

I'm trying to get a video I have in my project to play in my macOS application using swift. Here is my code: import Cocoa import AVKit import AVFoundation class ViewController: NSViewController { var player : AVPlayer! var avPlayerLayer :…
Eric Walier
  • 331
  • 2
  • 18
-1
votes
1 answer

AVKit.AVPlayerViewController - controls not visible with iOS11 and upwards

I have a videoPlayer with controls. These are not visible with iOS11 + no problem up to iOS10 This is a demo with the iPhone8 simulator iPhone 8 Demo This is a demo with the iPhoneX simulator. The controls aren't showing at the bottom of the…
sandra oo
  • 91
  • 1
  • 14
-1
votes
1 answer

In Avkit how it can be used this three lines of codes, and also how to mute the music"

In AVKit how it can be used this three lines of codes and also how to mute the music ? moviePlayer!.scalingMode = MPMovieScalingMode.AspectFill moviePlayer!.controlStyle = MPMovieControlStyle.None moviePlayer!.shouldAutoplay = true
FRHAS
  • 1
-1
votes
1 answer

Cannot play video audio via speakers - iOS

I have an iOS 9 application and I have implemented the AVPlayerViewController into one of my view controllers. I am trying to play a video. One problem I have noticed is that if I plug in the headphones, the audio plays in the headphones fine. But…
Supertecnoboff
  • 6,406
  • 11
  • 57
  • 98
-2
votes
1 answer

AVKit gives me the following error: implicitly unwrapped nil in "name class"

I have a series of videos in one folder. in another folder I have the following code: import Foundation import AVKit var videoPlayer: AVPlayer? func playVideo(filename: String, fileFormat: String) -> AVPlayer { if…
-2
votes
1 answer

Get preview image for remote video

I have a link to the video (for example: http://example.com/video.mp4). I need to get the first frame of the video. I use: func getPreviewImage(_ url: URL) -> UIImage? { let asset = AVURLAsset(url: url) let generator =…
Dmitry Kuzin
  • 656
  • 1
  • 6
  • 15
-2
votes
1 answer

How to control iPhone System volume?

I am trying to control iPhone System volume from my iOS App using Swift. I am following this below link but I can't do it. https://github.com/ioscreator/ioscreator/tree/master/IOS8SwiftVolumeTutorial/IOS8SwiftVolumeTutorial After using this I am…
Md. Sujan
  • 49
  • 1
  • 6
-2
votes
1 answer

How to Play Video from Within Collapsible UITableViewCell?

HI All: I have set up collapsible uitableviewcells and am trying to get video to play in the didSelectRowAtIndexPath method. I can get cells to fire a print statement to the console, but no matter what I try to get a video to play nothing works!…
MFAZ
  • 7
  • 4
1 2 3
22
23