I am working with an app now that streams data from a web url. I am able to implement the streaming using AVAsset and AVPlayer as its player. Now, what I want to do is to save the streamed bytes from AVAsset to a music file in local. It's basically writing AvAsset to a music file. What I have in mind is converting AVAsset to NSData but I think this one is not possible.
How can I achieve this? Is this possible?