title: AVAssetResourceLoaderDelegate not being called
body: <p>I've been trying to get some messages back on the <code>AVAssetResourceLoaderDelegate</code> protocol but it never seems to get called. I've verified that everything is happening on the main thread; from creation of <code>AVURLAsset</code>, creation of the <code>AVPlayerItem</code>, creation of the delegate, and the delegate queue is set to the main thread. I'm trying to stream web-hosted MP4 content and unencrypted HLS content. </p>
  
  <p>My declarations:</p>
  
  <pre><code>@property (readwrite, strong) AVPlayer* player;
  @property (strong) AVPlayerItem* playerItem;
  @property (strong) id&lt;AVAssetResourceLoaderDelegate&gt; resourceLoaderDelegate;
  </code></pre>
  
  <p>Code for playing the video:</p>
  
  <pre><code>AVURLAsset *asset = [AVURLAsset URLAssetWithURL:url options:nil];
  ...
  self-&gt;_resourceLoaderDelegate = [[MyAssetResourceLoaderDelegate alloc] init];
  [asset.resourceLoader setDelegate:self-&gt;_resourceLoaderDelegate
                              queue:dispatch_get_main_queue()];
  ...
  self-&gt;_playerItem = [AVPlayerItem playerItemWithAsset:asset];
  ...
  [self setPlayer:[AVPlayer playerWithPlayerItem:self-&gt;_playerItem]];
  </code></pre>
  
  <p>However, <code>resourceLoader:shouldWaitForLoadingOfRequestedResource:</code> never gets called (neither do any of the other delegate methods). </p>
  
  <p>For clarity's sake, I'm testing using the iOS Simulator as well as an iPhone 5s running iOS 8 (and the results appears identical). </p>
  
  <p>I've verified that all of the code is being executed on the main thread, as I read in <a href="https://stackoverflow.com/questions/24746453/avassetresourceloaderdelegate-only-requests-first-two-bytes">this question</a> that everything must be on the same thread. </p>
  
  <p>Does anyone have any suggestions, or perhaps a reference to some available source code where this delegate actually gets called?</p>
  
  <p><strong>Update:</strong> I've determined that this code works fine when the url is to a local file, but it still doesn't work when it's to a remote file. Is that expected behavior or is there a way I can do this for remote files?</p>