title: Play audio while downloading without downloading file twice?
body: <p>I would like to write an iOS app that plays an audio file as soon as there is enough data while continuing to download. It seems that you can either download and play when the download is finishing (<a href="https://stackoverflow.com/questions/16080326/using-nsurlprotocol-to-implement-play-while-downloading-for-avplayer-on-ios">Using NSURLProtocol to implement play while downloading for AVPlayer on iOS</a>) or continuously stream without getting to save a file (<a href="https://stackoverflow.com/questions/18188156/playing-audio-file-while-i-download-it">Playing audio file while I download it</a>). Is there any way to download and play at the same time without downloading two copies of the file? </p>