AVPlayerLayer Vs AVPlayerViewController
<p>I am new to iOS app developing field. I am trying to capture video using <strong>AVFoundation</strong>. I am successful in this. But when I tried to play the  video back using <strong>MPMoviePlayerController</strong>, I got too many issues. So I am trying to play using <strong>AVPlayer</strong>.
But in <strong>AVPlayer</strong> there are two approaches <strong>AVPlayerLayer</strong> and <strong>AVPlayerViewController</strong>.
I tried searching about those, but I didn't get any particular reason to choose one.
Can anyone suggest me which is better to use?</p>