title: Play encrypted video with AVPlayer
body: <p>I'm implementing an application that contains video player. For some reasons video files are encrypted with AES, and size of these files can be rather big to avoid loading it to RAM as one piece. I'm looking for some way to play it with AVPlayer.</p>
  
  <p>Tried:</p>
  
  <p>1) Custom NSURLProtocol as suggested here <a href="http://aptogo.co.uk/2010/07/protecting-resources/" rel="noreferrer">http://aptogo.co.uk/2010/07/protecting-resources/</a>
  Didn't work, I suggest that AVPlayer uses it's own and mine does not get called.</p>
  
  <p>2) Use AVAsset to chop video in small chunks and then feed them to AVPlayer - failed because there's no API in AVPlayer for that.</p>
  
  <p>Any workaround would be greatly appreciated :)</p>