title: AVAssetReader, how to use with a stream rather than a file?
body: <p>AVAssetReader is fantastic, but I can only see how to use it with a local asset, a file, or I guess a composition,</p>
  
  <p>So,</p>
  
  <pre><code>assetReader = try AVAssetReader(asset: self.asset)
  ...
  assetReader.addOutput(readerOutput)
  </code></pre>
  
  <p>and so on,</p>
  
  <p>Say you have an arriving stream</p>
  
  <p>(perhaps Apple's examples of .M3U8 files,</p>
  
  <p><a href="https://i.stack.imgur.com/w5o4J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w5o4J.png" alt="enter image description here"></a></p>
  
  <p><a href="https://developer.apple.com/streaming/examples/" rel="nofollow noreferrer">https://developer.apple.com/streaming/examples/</a>  )</p>
  
  <p>In fact, can AVAssetReader be used for streams?  Or only local files?</p>
  
  <p>I just plain cannot find this explained anywhere. (Maybe it's obvious if you're more familiar with it. :/ )</p>