I am using AVPlayer to play the video from AWS CloudFront server. Here is my code:
let playerItem = AVPlayerItem(url: url)
let player = AVPlayer(playerItem: playerItem)
playerViewCont.player = player
present(playerViewCont, animated: false) { [weak self] in
self?.playerViewCont.player?.play()
}
AVPlayer playing video from url every time its present. I want to save the video locally and for that I am seeking any function or way with which I can get downloaded video by AVPlayer so I can move it to another location for later use.
Any help?