Is there a better way to save streamed files with MediaPlayer? [closed]

送分小仙女□ 提交于 2019-12-22 04:45:23

问题


I'm trying to build a mediaplayer app, that allows the user to stream mp3 files from online, and save the file when it's finished downloading.

It looks like MediaPlayer doesn't provide any means of doing this, so existing solutions are a little hacky, and do things like downloading to a separate buffer, and repeatedly stopping/starting the MediaPlayer on buffer updates. As far as I can see, this means small pauses in the audio every time the buffer's swapped, which isn't very good.

Can anyone suggest a better way to do it?

来源:https://stackoverflow.com/questions/5460767/is-there-a-better-way-to-save-streamed-files-with-mediaplayer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!