开发者

Save audio stream into file with MPMoviePlayerController

I've some trouble wit开发者_开发百科h audio streaming using MPMoviePlayerController. I want to know if it's possible to save the data streaming info to a file while MPMoviePlayer is playing that file.

Is there a simple way to do this? Does anyone have an idea?


According to apple (http://developer.apple.com/library/ios/#codinghowtos/AudioAndVideo/_index.html) for streaming audio you connect to a network stream using CFNetwork interfaces from CoreFoundation, then parse the network packets into audio packets using Audio File Stream Service (AudioToolbox/AudioFileStream.h) and then play the audio packets using Audio Queue Services (AudioToolbox/AudioQueue.h) ….

Now my idea is that if we can find some way to write the audio packets to the file in between sending the packets to the audio queue then we can save the audio stream while playing them…

Its just an idea that needs implementation and don't know weather it will work for video stream or not.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜