我想在我的应用程序的“文档”文件夹中保存一个音频文件,而我的应用程序中的一个类正在流式传输它。我该如何做?
是否可能直接将流式音频保存为mp3格式?(如果正在流式传输的音频文件是mp3格式,还是必须使用caf格式?)
谢谢。
Edit: What if I am running the save in another thread and the user exits the application? I know an app cannot run in the background in an iPhone, but is there any way I can stop the download and remove the partially saved file when the user exits the app? Can I get an exit signal inside a class or in a delegate for NSURLConnection?