I have a video which I want to download from a server and stream it in a fixed view.
I\'ve set a UIView in my storyboard with fixed constraints, and here is what I\'ve done in c
let player = AVPlayer(url: video) // your video url
let playerLayer = AVPlayerLayer(player: player)
playerLayer.frame = videoView.bounds
videoView.layer.addSublayer(playerLayer)
player.play()